mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-15 09:01:17 +00:00
14 lines
419 B
TypeScript
14 lines
419 B
TypeScript
import { create } from 'zustand'
|
|
// create interface for proModal Display
|
|
interface userProModalStore {
|
|
isOpen: boolean
|
|
onOpen: () => void
|
|
onClose: () => void
|
|
}
|
|
|
|
// if the button is clicked, isOpen will become true and the modal will be displayed
|
|
export const useProModal = create<userProModalStore>((set) => ({
|
|
isOpen: false,
|
|
onOpen: () => set({ isOpen: true }),
|
|
onClose: () => set({ isOpen: false })
|
|
}))
|