@lax-wp/design-system
Version:
A comprehensive React + TypeScript design system built with Vite, providing reusable UI components for the LAX web portal applications. Features a complete set of form components, data display elements, and interactive controls with full TypeScript suppor
41 lines (40 loc) • 984 B
TypeScript
import type { FC } from 'react';
export interface DeleteModalProps {
visible: boolean;
onClose: () => void;
onSuccessClose?: () => void;
sectionName?: string;
suffix?: string;
onAgreementDelete?: () => void;
from?: string;
text: string;
additionalText?: string;
title: string;
deleteConfirm?: () => void;
onDeleteConfirm?: () => void;
onConfirmDelete?: () => void;
isLoading?: boolean;
isMod?: boolean;
isBooleanButton?: boolean;
cancelText?: string;
deleteText?: string;
yesText?: string;
noText?: string;
removeText?: string;
}
/**
* DeleteModal component for confirming delete operations
*
* @example
* ```tsx
* <DeleteModal
* visible={isOpen}
* onClose={() => setIsOpen(false)}
* title="Delete Item"
* text="Are you sure you want to delete"
* sectionName="this item"
* onConfirmDelete={handleDelete}
* />
* ```
*/
export declare const DeleteModal: FC<DeleteModalProps>;