2023-10-23 23:11:59 +02:00
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
|
|
|
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons"
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
interface InterestItemProps {
|
|
|
|
title: string
|
|
|
|
fontAwesomeIcon: IconDefinition
|
|
|
|
}
|
|
|
|
|
2023-08-01 17:22:09 +02:00
|
|
|
export const InterestItem = (props: InterestItemProps): JSX.Element => {
|
2021-04-18 01:56:23 +02:00
|
|
|
const { fontAwesomeIcon, title } = props
|
|
|
|
|
|
|
|
return (
|
2024-01-28 03:21:11 +01:00
|
|
|
<li className="m-2 size-8" title={title}>
|
2021-05-08 19:52:04 +02:00
|
|
|
<FontAwesomeIcon
|
2024-01-28 03:21:11 +01:00
|
|
|
className="block size-full text-yellow dark:text-yellow-dark"
|
2021-05-08 19:52:04 +02:00
|
|
|
icon={fontAwesomeIcon}
|
|
|
|
/>
|
|
|
|
</li>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|