{actions && {actions}}
{children}
);
}
/** `ListSection collapsible` — หัวกลุ่มเป็นปุ่ม สูง 44px · นับจำนวนยังเห็นตอนหุบ */
export function CollapsibleListSection({
title,
count,
action,
titleClassName,
as: Heading = "h2",
children,
className,
sectionProps,
...collapsible
}: CollapsibleProps & {
title: ReactNode;
count?: number;
action?: ReactNode;
titleClassName: string;
as?: "h2" | "h3" | "h4" | "p";
children: ReactNode;
className?: string;
sectionProps?: Record