node/@patternfly/react-table/src/deprecated/components/Table/TableContext.ts
raw| 1 | import { createContext } from 'react'; |
| 2 | import { IHeaderRow, IRow } from '../../../components'; |
| 3 | import { ColumnsType } from '../../../components/Table/base/types'; |
| 4 | |
| 5 | export const TableContext = createContext({ |
| 6 | headerData: null as ColumnsType, |
| 7 | headerRows: null as IHeaderRow[], |
| 8 | rows: [] as (IRow | string[])[] |
| 9 | }); |