air-command-ui-library
Version:
A React component library for Air Command System with Storybook
29 lines (28 loc) • 817 B
TypeScript
import React from 'react';
export interface ModalField {
label: string;
value: string | number;
}
export interface CornerModalProps {
isOpen: boolean;
onClose: () => void;
aircraftId: string;
classification: 'FRIENDLY' | 'HOSTILE' | 'NEUTRAL' | 'UNKNOWN';
fields: ModalField[];
theme?: 'light' | 'dark';
onUpdate?: () => void;
onDelete?: () => void;
onShowHistory?: () => void;
isHistoryVisible?: boolean;
className?: string;
}
/**
* Corner Modal Component - Sol üst köşede konumlanır
*
* Bu modal tam olarak önceki InfoModal tasarımınızı kopyalar:
* - Sol üst köşede (top: 80px, left: 20px)
* - Blur yok, overlay yok
* - Haritaya tıklayınca kapanır
* - ESC tuşu ile kapanır
*/
export declare const CornerModal: React.FC<CornerModalProps>;