13 行
329 B
TypeScript
13 行
329 B
TypeScript
import { cn } from '@/lib/utils'
|
|
|
|
import type { ComponentPropsWithoutRef, FC } from 'react'
|
|
|
|
type Props = ComponentPropsWithoutRef<'h2'>
|
|
|
|
|
|
const SectionTitle: FC<Props> = ({ children, className, ...rest }) => (
|
|
<h2 {...rest} className={cn ('text-xl my-4', className)}>
|
|
{children}
|
|
</h2>)
|
|
|
|
export default SectionTitle |