import {IconButton} from '@common/ui/buttons/icon-button'; import {Link} from 'react-router-dom'; import {KeyboardArrowRightIcon} from '@common/icons/material/KeyboardArrowRight'; import {ReactNode} from 'react'; import clsx from 'clsx'; interface Props { children: ReactNode; titleAppend?: ReactNode; link?: string; fontSize?: string; fontWeight?: string; margin?: string; headingType?: 'h1' | 'h2' | 'div'; className?: string; description?: ReactNode; descriptionFontSize?: string; actions?: ReactNode; hideBorder?: boolean; } export function SiteSectionHeading({ children, titleAppend, link, fontSize = 'text-2xl md:text-3xl', fontWeight = 'font-bold', margin = 'mb-20', className, headingType: HeadingType = 'h2', description, descriptionFontSize = 'text-base', actions, hideBorder, }: Props) { const title = link ? ( {children} ) : ( children ); return ( {title} {titleAppend && ( {titleAppend} )} {link && ( )} {actions && ( {actions} )} {description && ( {description} )} ); }