import * as React from 'react'; import type { ITableContext } from './TableContext'; import { TableContext } from './TableContext'; const { useContext } = React; export interface ITableCellProps { indent?: number; children?: React.ReactNode; } export interface ITableCellPropsWithInternalFields extends ITableCellProps { index: number; } export type ITableCellLayoutProps = ITableCellPropsWithInternalFields & Pick; export const TableCell = (props: ITableCellProps) => { const { layout, expandable, isMobile, columns } = useContext(TableContext); const { TableCellLayout } = layout; return ( ); };