fitst commit

This commit is contained in:
Samandar Turgunboyev
2026-01-28 18:26:50 +05:00
parent 166a55b1e9
commit 124798419b
196 changed files with 26627 additions and 421 deletions

View File

@@ -0,0 +1,20 @@
import { create } from 'zustand';
type State = {
phone: string | null;
userType: string | null;
};
type Actions = {
savedPhone: (phone: string | null) => void;
savedUserType: (userType: string | null) => void;
};
const userInfoStore = create<State & Actions>((set) => ({
phone: null,
savedPhone: (phone: string | null) => set(() => ({ phone })),
userType: null,
savedUserType: (userType: string | null) => set(() => ({ userType })),
}));
export default userInfoStore;