Skip to content

Commit

Permalink
Create modal store
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafadalga committed Oct 11, 2023
1 parent 48f67e2 commit 3e1c1bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions app/_store/useModalGameOver.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { create } from 'zustand';

interface ModalGameOver {
isOpen: boolean;
onOpen: () => void;
onClose: () => void;
}

export default create<ModalGameOver>((set) => ({
isOpen: false,
onOpen: () => set({ isOpen: true }),
onClose: () => set({ isOpen: false }),
}));

0 comments on commit 3e1c1bb

Please sign in to comment.