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