import { classNames } from "@calcom/lib"; interface TableProps { children: React.ReactNode; } interface DynamicWidth { widthClassNames?: string; } const Header = ({ children }: TableProps) => ( {children} ); const ColumnTitle = ({ children, widthClassNames }: TableProps & DynamicWidth) => ( {children} ); const Body = ({ children }: TableProps) => ( {children} ); const Row = ({ children }: TableProps) => {children}; const Cell = ({ children, widthClassNames }: TableProps & DynamicWidth) => ( {children} ); export const Table = ({ children }: TableProps) => (
{children}
); Table.Header = Header; Table.ColumnTitle = ColumnTitle; Table.Body = Body; Table.Row = Row; Table.Cell = Cell;