16 lines
350 B
TypeScript
16 lines
350 B
TypeScript
|
|
import { FC, ReactNode } from 'react';
|
||
|
|
|
||
|
|
interface ComponentTitleProps {
|
||
|
|
children: ReactNode;
|
||
|
|
}
|
||
|
|
|
||
|
|
const ComponentTitle: FC<ComponentTitleProps> = ({ children }) => {
|
||
|
|
return (
|
||
|
|
<h2 className="text-red-500 text-lg font-mono font-bold tracking-wider uppercase">
|
||
|
|
{ children }
|
||
|
|
</h2>
|
||
|
|
)
|
||
|
|
}
|
||
|
|
|
||
|
|
export default ComponentTitle
|