import * as React from "react"; import { type LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; export interface SectionProps extends React.HTMLAttributes { title?: string; icon?: LucideIcon; description?: string; actions?: React.ReactNode; headerClassName?: string; } const Section = React.forwardRef( ( { title, icon: Icon, description, actions, children, className, headerClassName, ...props }, ref ) => { return (
{(title || actions) && (
{title && (
{Icon && }

{title}

{description && (

{description}

)}
)} {actions &&
{actions}
}
)} {children}
); } ); Section.displayName = "Section"; export { Section };