import clsx from 'clsx'; import { ReactNode } from 'react'; interface Props { children: ReactNode; label: string; colClassName?: string; className?: string; columns?: Array; } export function DetailsRow({ label, children, colClassName, className, columns, }: Props) { return ( {label} {children} {columns?.map((column, index) => ( {column} ))} ); }