/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */ /* eslint-disable @typescript-eslint/no-explicit-any */ import Subtitle from '#components/Typography/Subtitle' interface TitleCardProps { title?: string hideTitle?: boolean children?: React.ReactNode topMargin?: string className?: string TopSideButtons?: any } export function TitleCard({ title, hideTitle, children, topMargin, TopSideButtons, className, }: TitleCardProps) { return (
{!hideTitle && ( <> {title} {/* Top side button, show only if present */} {TopSideButtons && (
{TopSideButtons}
)}
)} {/** Card Body */}
{children}
) }