import React from 'react'; import { BusterListRow, BusterListColumn, BusterListProps } from './interfaces'; import { BusterListSectionComponent } from './BusterListSectionComponent'; import { BusterListRowComponent } from './BusterListRowComponent'; export const BusterListRowComponentSelector = React.forwardRef< HTMLDivElement, { row: BusterListRow; columns: BusterListColumn[]; id: string; onSelectChange?: (v: boolean, id: string) => void; onSelectSectionChange?: (v: boolean, id: string) => void; onContextMenuClick?: (e: React.MouseEvent, id: string) => void; selectedRowKeys?: string[]; rows: BusterListRow[]; style?: React.CSSProperties; columnRowVariant: BusterListProps['columnRowVariant']; } >( ( { style, row, rows, columns, onSelectChange, onSelectSectionChange, selectedRowKeys, onContextMenuClick, columnRowVariant }, ref ) => { if (row.rowSection) { return ( ); } return ( ); } ); BusterListRowComponentSelector.displayName = 'BusterListRowComponent';