mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-09 22:09:07 +01:00
21 lines
546 B
TypeScript
21 lines
546 B
TypeScript
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
|
|
import type { IconDefinition } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
interface InterestItemProps {
|
|
title: string
|
|
fontAwesomeIcon: IconDefinition
|
|
}
|
|
|
|
export const InterestItem = (props: InterestItemProps): JSX.Element => {
|
|
const { fontAwesomeIcon, title } = props
|
|
|
|
return (
|
|
<li className="m-2 size-8" title={title}>
|
|
<FontAwesomeIcon
|
|
className="block size-full text-primary dark:text-primary-dark"
|
|
icon={fontAwesomeIcon}
|
|
/>
|
|
</li>
|
|
)
|
|
}
|