import type { LunaticComponentProps } from '../../type'; import { Th } from './Th'; import { Thead } from './Thead'; import { Tr } from './Tr'; export function TableHeader({ header, }: Pick, 'header'>) { if (!Array.isArray(header)) { return null; } const content = header.map(function ({ label, rowspan, colspan }, index) { return ( {label} ); }); return ( {content} ); }