import classNames from 'classnames' import { ReactNode } from 'react' import IVButton, { IVButtonProps } from '~/components/IVButton' export default function SectionHeading({ HeadingComponent = 'h3', title, description, children, actions, }: { HeadingComponent?: keyof JSX.IntrinsicElements title: ReactNode description?: ReactNode children?: ReactNode actions?: IVButtonProps[] }) { return (
{title} {description && (

{description}

)}
{actions && (
{actions?.map((props, i) => ( ))}
)}
{children ?? null}
) }