import styled from '@emotion/styled'; import { TableColumn } from '@/people/table/components/peopleColumns'; import { CheckboxCell } from './CheckboxCell'; import { EntityTableCell } from './EntityTableCell'; const StyledRow = styled.tr<{ selected: boolean }>` background: ${(props) => props.selected ? props.theme.background.secondary : 'none'}; `; export function EntityTableRow({ columns, rowId, }: { columns: TableColumn[]; rowId: string; }) { return ( {columns.map((column, columnIndex) => { return ( {column.cellComponent} ); })} ); }