UNPKG

air-command-ui-library

Version:

A React component library for Air Command System with Storybook

34 lines (33 loc) 929 B
import React from 'react'; import { BaseComponentProps, ThemeVariant } from '../../types'; export type ModalType = 'update' | 'delete' | 'type-only-update' | 'info'; export interface ModalField { label: string; value: string | number; } export interface ModalProps extends BaseComponentProps { isOpen: boolean; onClose: () => void; type: ModalType; title?: string; theme?: ThemeVariant; onUpdate?: (payload: { type: string; classification?: string; }) => void; initialData?: { type?: string; classification?: string; }; onDelete?: () => void; itemIdentifier?: string; itemType?: string; confirmationText?: string; warningText?: string; aircraftId?: string; fields?: ModalField[]; classification?: string; onShowHistory?: () => void; isHistoryVisible?: boolean; } export declare const Modal: React.FC<ModalProps>;