import { LucideIcon } from 'lucide-react' import { ReactNode } from 'react' import { cn } from 'ui' export type IconComponent = | LucideIcon | React.ComponentType<{ size?: number; strokeWidth?: number; className?: string }> interface DetailSectionHeaderProps { title: string icon?: IconComponent summary?: ReactNode className?: string } export const DetailSectionHeader = ({ title, icon: Icon, summary, className, }: DetailSectionHeaderProps) => (
{Icon ? ( ) : ( )} {title}
{summary !== undefined && summary !== null && summary !== '' ? ( {summary} ) : null}
)