import type { ReactNode } from "react"; import { AppTableGrid, OverlayProvider } from "../customer-grid/seam"; import type { AppTableHost, Row } from "../customer-grid/seam"; import "../styles/sdlc82/app-grid.css"; interface AppGridProps { table: string | null | undefined; onOpenRow: (row: Row) => void; empty?: ReactNode; } /** One App table through the C2 seam. The grid draws History in its toolbar slot. */ function HostedTable({ table, onOpenRecord }: { table: string; onOpenRecord?: AppTableHost["data"]["onOpenRecord"] }) { return ; } export function AppGrid({ table, onOpenRow, empty = "No records yet." }: AppGridProps) { return
{table ? { if (row) onOpenRow(row); }} /> :
{empty}
}
; }