react-code-dataset / Full-Stack-Spotify-Clone-Next-13.4-React-Stripe-Supabase-Tailwind /hooks /useAuthModal.ts
Download Full-Stack-Spotify-Clone-Next-13.4-React-Stripe-Supabase-Tailwind/hooks/useAuthModal.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/Full-Stack-Spotify-Clone-Next-13.4-React-Stripe-Supabase-Tailwind/hooks/useAuthModal.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/Full-Stack-Spotify-Clone-Next-13.4-React-Stripe-Supabase-Tailwind/hooks/useAuthModal.ts
-
curl -L -o useAuthModal.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/Full-Stack-Spotify-Clone-Next-13.4-React-Stripe-Supabase-Tailwind/hooks/useAuthModal.ts
317 Bytes
| import { create } from 'zustand'; | |
| interface AuthModalStore { | |
| isOpen: boolean; | |
| onOpen: () => void; | |
| onClose: () => void; | |
| } | |
| const useAuthModal = create<AuthModalStore>((set) => ({ | |
| isOpen: false, | |
| onOpen: () => set({ isOpen: true }), | |
| onClose: () => set({ isOpen: false }), | |
| })); | |
| export default useAuthModal; | |