import { PropsWithChildren } from 'react'; type Props = { headers?: string[]; dataCy?: string; }; export function DetailsTable({ headers = [], dataCy, children, }: PropsWithChildren) { return ( {headers.length > 0 && ( {headers.map((header) => ( ))} )} {children && {children}}
{header}
); }