mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-10 06:18:07 +01:00
21 lines
469 B
TypeScript
21 lines
469 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'>
|
||
|
<strong className='important'>{title}</strong>
|
||
|
<br />
|
||
|
<span className='paragraph-color'>{htmlParser(description)}</span>
|
||
|
</p>
|
||
|
</>
|
||
|
)
|
||
|
}
|