import { Children, cloneElement, Fragment, ReactNode, useEffect, useRef, useState } from 'react'; import classnames from 'classnames'; import Box from './Box'; import { useTableContext } from './contexts/TableContext'; import IconButton from './IconButton'; import styles from './Table.css'; import getChildrenCount from './Table/getChildrenCount'; import TableCell from './TableCell'; type Props = { /** * Supply a short, descriptive label for screen-readers as a text alternative to the expand button. */ accessibilityExpandLabel: string; /** * Supply a short, descriptive label for screen-readers as a text alternative to the collapse button. Accessibility: It populates `aria-label` on the `