import classNames from 'classnames' import type { PropsWithChildren } from 'react' interface DetailRowProps { label: JSX.Element | string sublabel?: string onClick?: () => void } export function DetailRow({ label, sublabel, onClick, children, }: PropsWithChildren): JSX.Element { return (

{label}

{sublabel != null &&

{sublabel}

}
{children}
) }