Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 14x | import React from "react"; import { TableColumn } from "./TableProps"; import { TableColGroup } from "./TableColGroup"; import { StyledProps } from "../_type"; export interface TableBoxProps extends StyledProps { columns: TableColumn[]; children: React.ReactChild; classPrefix: string; } export function TableBox({ columns, children, classPrefix, style, }: TableBoxProps) { return ( <table className={`${classPrefix}-table__box`} style={style}> <TableColGroup columns={columns} /> {children} </table> ); } |