feat: add frontend production API client

This commit is contained in:
Asep Haryana Saputra
2026-05-22 16:43:25 +00:00
parent e9d6aabcdc
commit 16a8935958
2 changed files with 146 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
import { create } from 'zustand';
import type { AuthUser } from '@zeavis/shared';
type AuthState = {
user: AuthUser | null;
setUser: (user: AuthUser | null) => void;
};
export const useAuthStore = create<AuthState>((set) => ({
user: null,
setUser: (user) => set({ user }),
}));