import classNames from 'classnames' import type { PropsWithChildren } from 'react' import { Tooltip } from 'lib/ui/Tooltip/Tooltip.js' interface DetailSectionProps { label?: string tooltipContent?: JSX.Element | string className?: string } export function DetailSection({ label, tooltipContent, className, children, }: PropsWithChildren): JSX.Element { return (
{label != null &&

{label}

} {tooltipContent != null && {tooltipContent}}
{children}
) }