import React from 'react'; import { cn } from '../copilot/cn'; // A CSS grid rather than a table, so a row can carry an expandable drawer // underneath itself without colSpan gymnastics. Styles: styles/global.css. interface DataGridProps { /** ``grid-template-columns`` value for wide viewports. */ columns: string; /** Optional narrow-viewport template. Falls back to {@link columns}. */ columnsSm?: string; className?: string; children: React.ReactNode; } export const DataGrid = ({ columns, columnsSm, className, children, }: DataGridProps): JSX.Element => (
{children}
); export const DataGridHead = ({ children, }: { children: React.ReactNode; }): JSX.Element => (
{children}
); export const DataGridRow = ({ className, children, ...rest }: React.ComponentProps<'div'>): JSX.Element => (
{children}
); export const DataGridFooter = ({ children, }: { children: React.ReactNode; }): JSX.Element =>
{children}
; export default DataGrid;