import { create } from "zustand";

interface SettingState {
	username: string;
	password: string;
	clearUser: () => void;
	setUserInfo: (username: string, password: string) => void;
}

export const useAuthStore = create<SettingState>()((set) => ({
	username: "",
	password: "",
	setUserInfo: (username, password) => set({ username, password }),
	clearUser: () => set({ username: "", password: "" }),
}));
