import { chakra, Fade, Button } from '@chakra-ui/react' import { Cell as CellProps } from '@tanstack/react-table' import { ExpandIcon } from 'assets/icons' import { memo } from 'react' type Props = { cell: CellProps size: number isExpandButtonVisible: boolean cellIndex: number onExpandButtonClick: () => void } const Cell = ({ cell, size, isExpandButtonVisible, cellIndex, onExpandButtonClick, }: Props) => { return ( {cell.renderCell()} ) } export default memo( Cell, (prev, next) => prev.size === next.size && prev.isExpandButtonVisible === next.isExpandButtonVisible )