This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` | |
| import { useEffect } from "react"; | |
| import { useModalStore } from "@/stores/useModalStore"; | |
| // 감지된 뒤로가기에 반응하여 종료 모달을 띄우는 공용 훅 | |
| export function useBackExitModal( | |
| isActive: boolean = true, //gameOver 일때는 가로채기 금지 | |
| ) { | |
| const setOpenModal = useModalStore((state) => state.setOpenModal); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 🌞 Morning 12 commits █░░░░░░░░░░░░░░░░░░░░ 5.0% | |
| 🌆 Daytime 24 commits ██░░░░░░░░░░░░░░░░░░░ 10.0% | |
| 🌃 Evening 87 commits ███████▌░░░░░░░░░░░░░ 36.3% | |
| 🌙 Night 117 commits ██████████▏░░░░░░░░░░ 48.8% |