UNPKG

@resulbeser1/air-command-ui-components

Version:
30 lines (29 loc) 747 B
import React from "react"; export interface TableColumn { key: string; label: string; sortable?: boolean; } export interface SortConfig { column: string; direction: "asc" | "desc"; priority: number; } export interface TableRowData { id: string; callsign: string; type: string; classification: string; latitude: string | number; longitude: string | number; } export interface TableProps { columns: TableColumn[]; data: TableRowData[]; selectedRowId?: string; selectedRowIds?: string[]; onRowClick?: (id: string, event?: React.MouseEvent) => void; theme?: "light" | "dark"; sortConfigs?: SortConfig[]; onSortChange?: (column: string, isCtrlPressed: boolean) => void; }