import type React from 'react'; import type { LucideIcon } from 'lucide-react'; import Icon from '@/components/elements/Icon'; import { cn } from '@/lib/cn'; import { cardTitleClass } from '@/components/ui/typography'; import { isString } from '@/lib/objects'; interface Props { icon?: LucideIcon; title: string | React.ReactNode; className?: string; contentClassName?: string; children: React.ReactNode; } const TitledGreyBox = ({ icon, title, children, className, contentClassName }: Props) => (
{isString(title) ? (

{icon && } {title}

) : ( title )}
{children}
); export default TitledGreyBox;