mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui-components.git
synced 2026-01-08 08:23:08 +00:00
19 lines
432 B
TypeScript
19 lines
432 B
TypeScript
import { Fragment, ReactElement } from "react";
|
|
import { Cell, CellProps } from "./Cell";
|
|
import "./row.css";
|
|
|
|
export type RowProps = {
|
|
cells: ReactElement<CellProps, typeof Cell>[];
|
|
className?: string;
|
|
};
|
|
|
|
export function Row({ cells, className = "" }: RowProps) {
|
|
return (
|
|
<tr className={"row " + className}>
|
|
{cells.map((Cell, index) => (
|
|
<Fragment key={index}>{Cell}</Fragment>
|
|
))}
|
|
</tr>
|
|
);
|
|
}
|