initial commit

This commit is contained in:
Harivansh Rathi 2024-11-24 20:56:03 -05:00
commit ef9ccf22d3
133 changed files with 20802 additions and 0 deletions

14
hooks/use-pro-modal.ts Normal file
View file

@ -0,0 +1,14 @@
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 })
}))