1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-19 22:15:53 +02:00
.profile/components/Interests/InterestParagraph.tsx
2021-08-23 19:41:39 +02:00

23 lines
542 B
TypeScript

import htmlParser from 'html-react-parser'
export interface InterestParagraphProps {
title: string
description: string
}
export const InterestParagraph: React.FC<InterestParagraphProps> = (props) => {
const { title, description } = props
return (
<>
<p className='text-center my-6 text-gray dark:text-gray-dark'>
<strong className='text-yellow font-semibold text-lg dark:text-yellow-dark'>
{title}
</strong>
<br />
<span>{htmlParser(description)}</span>
</p>
</>
)
}