mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
import { create } from 'zustand';
|
|
|
|
type ProModalStore = {
|
|
isOpen: boolean;
|
|
onOpen: () => void;
|
|
onClose: () => void;
|
|
};
|
|
|
|
export const useProModal = create<ProModalStore>((set) => ({
|
|
isOpen: false,
|
|
onOpen: () => set({ isOpen: true }),
|
|
onClose: () => set({ isOpen: false }),
|
|
}));
|