import classNames from 'classnames' import { Repeater, types } from 'react-bricks/rsc' import blockNames from '../../blockNames' export interface TableRowProps { index: number striped?: boolean withHeader?: boolean borders?: 'none' | 'horizontal' | 'all' cells: types.RepeaterItems } const TableRow: types.Brick = ({ index, striped = false, withHeader = true, borders = 'horizontal', cells, }) => { if (withHeader && index === 0) { return ( ) } return ( ) } TableRow.schema = { name: blockNames.TableRow, label: 'Row', category: 'single column / blog', hideFromAddMenu: true, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/singleColumnContent/Table/TableRow.tsx', getDefaultProps: () => ({ cells: [ { text: 'Cell', }, { text: 'Cell', }, ], }), repeaterItems: [ { name: 'cells', itemType: blockNames.TableCell, min: 1, }, ], sideEditProps: [], } export default TableRow