import { create } from 'zustand';

interface PinStore {
  pinConfirmed: boolean;
  setPinConfirmed: (confirmed: boolean) => void;
  resetPinConfirmed: () => void;
}

export const usePinStore = create<PinStore>((set) => ({
  pinConfirmed: false,
  setPinConfirmed: (confirmed: boolean) => set({ pinConfirmed: confirmed }),
  resetPinConfirmed: () => set({ pinConfirmed: false }),
}));

export default usePinStore;
