1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-12 23:33:14 +01:00
.profile/components/Interests/InterestsList/InterestItem.tsx

21 lines
546 B
TypeScript
Raw Normal View History

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
}
export const InterestItem = (props: InterestItemProps): JSX.Element => {
2021-04-18 01:56:23 +02:00
const { fontAwesomeIcon, title } = props
return (
<li className="m-2 size-8" title={title}>
<FontAwesomeIcon
2024-04-06 20:25:02 +02:00
className="block size-full text-primary dark:text-primary-dark"
icon={fontAwesomeIcon}
/>
</li>
2021-04-18 01:56:23 +02:00
)
}