UNPKG

@restnfeel/agentc-starter-kit

Version:

한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템

32 lines 1.56 kB
interface ConfirmationDialogProps { open: boolean; onOpenChange: (open: boolean) => void; title: string; description: string; confirmText?: string; cancelText?: string; variant?: "default" | "destructive" | "warning"; onConfirm: () => void; onCancel?: () => void; loading?: boolean; } export declare function ConfirmationDialog({ open, onOpenChange, title, description, confirmText, cancelText, variant, onConfirm, onCancel, loading, }: ConfirmationDialogProps): import("react/jsx-runtime").JSX.Element; export declare function useConfirmationDialog(): { showConfirmation: (options: { title: string; description: string; confirmText?: string; cancelText?: string; variant?: "default" | "destructive" | "warning"; onConfirm: () => void; onCancel?: () => void; }) => void; hideConfirmation: () => void; setLoading: (loading: boolean) => void; ConfirmationDialog: () => import("react/jsx-runtime").JSX.Element; }; export declare const confirmDelete: (showConfirmation: (options: any) => void, itemName: string, onConfirm: () => void) => void; export declare const confirmAction: (showConfirmation: (options: any) => void, title: string, description: string, onConfirm: () => void, confirmText?: string) => void; export declare const confirmDestructiveAction: (showConfirmation: (options: any) => void, title: string, description: string, onConfirm: () => void, confirmText?: string) => void; export {}; //# sourceMappingURL=confirmation-dialog.d.ts.map