| 1 |
import { css } from '@patternfly/react-styles'; |
| 2 |
import styles from '@patternfly/react-styles/css/components/DataList/data-list'; |
| 3 |
|
| 4 |
export interface DataListItemCellsProps extends React.HTMLProps<HTMLDivElement> { |
| 5 |
/** Additional classes added to the data list item content wrapper. Children should be one or more <DataListCell> nodes */ |
| 6 |
className?: string; |
| 7 |
/** Array of <DataListCell> nodes that are rendered one after the other. */ |
| 8 |
dataListCells?: React.ReactNode; |
| 9 |
/** Id for the row */ |
| 10 |
rowid?: string; |
| 11 |
} |
| 12 |
|
| 13 |
export const DataListItemCells: React.FunctionComponent<DataListItemCellsProps> = ({ |
| 14 |
className = '', |
| 15 |
dataListCells, |
| 16 |
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 17 |
rowid = '', |
| 18 |
...props |
| 19 |
}: DataListItemCellsProps) => ( |
| 20 |
<div className={css(styles.dataListItemContent, className)} {...props}> |
| 21 |
{dataListCells} |
| 22 |
</div> |
| 23 |
); |
| 24 |
DataListItemCells.displayName = 'DataListItemCells'; |