import cn from 'classnames'; import { useEffect, useState } from 'react'; import { CLASSES, ROLES } from '@tabulus/constants'; import { objectEntries } from '@tabulus/utils'; import { Cell } from '../Cell'; import { RowWrapper } from './styled'; import type { RowProps } from './types'; import type { FC } from 'react'; const Row: FC = ({ index, row }: RowProps) => { //== State ========================== const [cells, setCells] = useState(objectEntries(row)); //== Side Effects =================== useEffect(() => setCells(objectEntries(row)), [row]); //== Return Value =================== return ( {cells.map(([column, value]) => ( ))} ); }; export { Row }; export type { RowProps } from './types';