import Subtitle from "../Typography/Subtitle" import * as React from "react" 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 && <> < Subtitle styleClass={TopSideButtons ? "tw-inline-block" : ""}> {title} {/* Top side button, show only if present */} { TopSideButtons &&
{TopSideButtons}
}
} {/** Card Body */}
{children}
) }