skolplattformen-backup/packages/site/components/SectionTitle.tsx

18 lines
374 B
TypeScript
Raw Normal View History

2021-05-11 12:03:26 +00:00
import { H2 } from '../components/Typography'
2021-03-30 18:34:40 +00:00
interface SectionTitleProps {
text?: string
title: string
}
const SectionTitle = ({ text, title }: SectionTitleProps): JSX.Element => {
2021-02-05 09:09:42 +00:00
return (
<div className="mb-16 text-center space-y-5">
2021-05-11 12:03:26 +00:00
<H2>{title}</H2>
{text && <p className="text-gray-600">{text}</p>}
2021-02-05 09:09:42 +00:00
</div>
)
}
export default SectionTitle