import { create } from 'zustand';
export const useConfirmationStore = create((set) => ({
    isOpen: false,
    title: 'Confirm Action',
    message: '',
    confirmLabel: 'Confirm',
    cancelLabel: 'Cancel',
    variant: 'default',
    onConfirm: () => { },
    onCancel: undefined,
    openConfirmation: (options) => set({
        isOpen: true,
        title: options.title || 'Confirm Action',
        message: options.message,
        confirmLabel: options.confirmLabel || 'Confirm',
        cancelLabel: options.cancelLabel || 'Cancel',
        variant: options.variant || 'default',
        onConfirm: options.onConfirm,
        onCancel: options.onCancel,
    }),
    closeConfirmation: () => set({
        isOpen: false,
        onConfirm: () => { },
        onCancel: undefined,
    }),
}));
//# sourceMappingURL=confirmationStore.js.map