complated project

This commit is contained in:
Samandar Turgunboyev
2026-02-02 18:51:53 +05:00
parent f0183e4573
commit a7419929f8
57 changed files with 3035 additions and 477 deletions

View File

@@ -0,0 +1,16 @@
import { create } from 'zustand';
type State = {
token: string | null;
};
type Actions = {
savedToken: (token: string | null) => void;
};
const useTokenStore = create<State & Actions>((set) => ({
token: null,
savedToken: (token: string | null) => set(() => ({ token })),
}));
export default useTokenStore;