1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-09 22:09:07 +01:00
.profile/components/Interests/InterestParagraph.tsx

34 lines
829 B
TypeScript
Raw Normal View History

import htmlParser from "html-react-parser"
2024-01-23 23:59:10 +01:00
import { faCode, faMicrochip } from "@fortawesome/free-solid-svg-icons"
import { faGit } from "@fortawesome/free-brands-svg-icons"
export const InterestsIcons = {
code: faCode,
"open-source": faGit,
"high-tech": faMicrochip,
} as const
2021-04-18 01:56:23 +02:00
export interface InterestParagraphProps {
title: string
description: string
2024-01-23 23:59:10 +01:00
id: keyof typeof InterestsIcons
2021-04-18 01:56:23 +02:00
}
export const InterestParagraph = (
props: InterestParagraphProps,
): JSX.Element => {
2021-04-18 01:56:23 +02:00
const { title, description } = props
return (
<>
<p className="my-6 text-center text-gray dark:text-gray-dark">
2024-04-06 20:25:02 +02:00
<strong className="text-lg font-semibold text-primary dark:text-primary-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>
</>
)
}