import { create } from "zustand";

interface AuthPopupStore {
  opened: boolean;
  open: () => void;
  close: () => void;
}

const useAuthPopup = create<AuthPopupStore>((set) => ({
  opened: false,
  open: () => set(() => ({ opened: true })),
  close: () => set(() => ({ opened: false })),
}));

export default useAuthPopup;
