1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-20 06:25:53 +02:00
.profile/components/Interests/InterestParagraph.tsx

25 lines
549 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 = (
props: InterestParagraphProps
): JSX.Element => {
2021-04-18 01:56:23 +02:00
const { title, description } = props
return (
<>
2021-12-04 15:52:51 +01:00
<p className='my-6 text-center text-gray dark:text-gray-dark'>
<strong className='text-lg font-semibold text-yellow dark:text-yellow-dark'>
{title}
</strong>
2021-04-18 01:56:23 +02:00
<br />
<span>{htmlParser(description)}</span>
2021-04-18 01:56:23 +02:00
</p>
</>
)
}