mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 18:13:48 -04:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
16 lines
343 B
TypeScript
16 lines
343 B
TypeScript
import clsx from 'clsx'
|
|
|
|
export function Subtitle(props: {children: React.ReactNode; className?: string}) {
|
|
const {children: text, className} = props
|
|
return (
|
|
<h2
|
|
className={clsx(
|
|
'text-primary-700 mb-2 mt-6 inline-block text-lg sm:mb-2 sm:mt-6 sm:text-xl',
|
|
className,
|
|
)}
|
|
>
|
|
{text}
|
|
</h2>
|
|
)
|
|
}
|