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
|
|
|
|
}
|
|
|
|
|
2021-04-23 13:52:13 +00:00
|
|
|
const SectionTitle = ({ text, title }: SectionTitleProps): JSX.Element => {
|
2021-02-05 09:09:42 +00:00
|
|
|
return (
|
2021-02-17 17:56:05 +00:00
|
|
|
<div className="mb-16 text-center space-y-5">
|
2021-05-11 12:03:26 +00:00
|
|
|
<H2>{title}</H2>
|
2021-02-17 17:56:05 +00:00
|
|
|
{text && <p className="text-gray-600">{text}</p>}
|
2021-02-05 09:09:42 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SectionTitle
|