({ children, as, className, ...props }: TitleProps)
| 40 | * @returns A JSX element with consistent project-specific title styling. |
| 41 | */ |
| 42 | const Title = ({ children, as, className, ...props }: TitleProps) => { |
| 43 | const Component = as |
| 44 | const titleClasses = cn(ValidTitleElements[as], "text-[var(--color-text-normal)]", className) |
| 45 | |
| 46 | return ( |
| 47 | <Component {...props} className={titleClasses}> |
| 48 | {children} |
| 49 | </Component> |
| 50 | ) |
| 51 | } |
| 52 | |
| 53 | export { Title } |
nothing calls this directly
no test coverage detected
searching dependent graphs…