issue # 회원가입 화면 구현 중

This commit is contained in:
민건희
2025-11-05 23:14:32 +09:00
parent 3a6e3eb70b
commit 917bef73b0
13 changed files with 176 additions and 91 deletions

13
src/store/authStore.ts Normal file
View File

@@ -0,0 +1,13 @@
import type { AuthData } from '@/data/AuthData';
import { create } from 'zustand';
interface AuthStoreProps {
authData: AuthData | undefined;
login: (data: AuthData) => void;
}
export const useAuthStore = create<AuthStoreProps>((set) => ({
authData: undefined,
login: (data: AuthData) => set({ authData: data }),
logout: () => set({ authData: undefined })
}));