1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-14 16:13:14 +01:00
.profile/components/Interests/InterestParagraph.tsx

23 lines
568 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
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-medium text-lg dark:text-yellow-dark'>
{title}
</strong>
2021-04-18 01:56:23 +02:00
<br />
<span className='paragraph-color'>{htmlParser(description)}</span>
</p>
</>
)
}