import React, { useContext } from 'react'; import classNames from 'classnames'; import { ScrollSyncPane } from 'react-scroll-sync'; import { If } from 'components'; import TableContext from './TableContext'; function TableHeaderCell({ column, index }) { const { table: { getToggleAllRowsExpandedProps, isAllRowsExpanded }, props: { expandable, expandToggleColumn }, } = useContext(TableContext); return (