UNPKG

air-command-ui-library

Version:

A React component library for Air Command System with Storybook

35 lines (34 loc) 1.09 kB
import React from 'react'; import { BaseComponentProps, ThemeVariant } from '../../types'; import { ModalField } from './ModalContents'; export type ModalType = 'update' | 'delete' | 'type-only-update' | 'info'; export interface LegacyModalProps extends BaseComponentProps { isOpen: boolean; onClose: () => void; type: ModalType; title?: string; theme?: ThemeVariant; onUpdate?: (data: { type: string; classification?: string; }) => void; initialData?: { type?: string; classification?: string; }; onDelete?: () => void; itemIdentifier?: string; confirmationText?: string; warningText?: string; aircraftId?: string; fields?: ModalField[]; classification?: string; onShowHistory?: () => void; isHistoryVisible?: boolean; } /** * Legacy Modal component for backward compatibility * This component wraps the new flexible Modal system to maintain compatibility * with existing code while providing the same API as before. */ export declare const LegacyModal: React.FC<LegacyModalProps>;