air-command-ui-library
Version:
A React component library for Air Command System with Storybook
52 lines (51 loc) • 1.54 kB
TypeScript
import React from 'react';
import { ThemeVariant } from '../../types';
export interface ModalField {
label: string;
value: string | number;
}
export interface UpdateModalContentProps {
theme?: ThemeVariant;
onUpdate: (data: {
type: string;
classification?: string;
}) => void;
onCancel: () => void;
initialData?: {
type?: string;
classification?: string;
};
typeOnly?: boolean;
}
export declare const UpdateModalContent: React.FC<UpdateModalContentProps>;
export interface DeleteModalContentProps {
theme?: ThemeVariant;
onDelete: () => void;
onCancel: () => void;
itemIdentifier?: string;
confirmationText?: string;
warningText?: string;
}
export declare const DeleteModalContent: React.FC<DeleteModalContentProps>;
export interface InfoModalContentProps {
theme?: ThemeVariant;
aircraftId: string;
classification: string;
fields: ModalField[];
onUpdate?: () => void;
onDelete?: () => void;
onShowHistory?: () => void;
isHistoryVisible?: boolean;
}
export declare const InfoModalContent: React.FC<InfoModalContentProps>;
export interface AirCommandModalContentProps {
theme?: ThemeVariant;
aircraftId: string;
classification: 'FRIENDLY' | 'HOSTILE' | 'NEUTRAL' | 'UNKNOWN';
fields: ModalField[];
onUpdate?: () => void;
onDelete?: () => void;
onShowHistory?: () => void;
isHistoryVisible?: boolean;
}
export declare const AirCommandModalContent: React.FC<AirCommandModalContentProps>;