mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-05 04:51:30 +01:00
21 lines
576 B
TypeScript
21 lines
576 B
TypeScript
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
import { IconDefinition } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
interface InterestItemProps {
|
|
title: string
|
|
fontAwesomeIcon: IconDefinition
|
|
}
|
|
|
|
export const InterestItem: React.FC<InterestItemProps> = (props) => {
|
|
const { fontAwesomeIcon, title } = props
|
|
|
|
return (
|
|
<li className='interest-item my-2 mx-2 w-8 h-8' title={title}>
|
|
<FontAwesomeIcon
|
|
className='text-yellow cursor-pointer h-full w-full block dark:text-yellow-dark'
|
|
icon={fontAwesomeIcon}
|
|
/>
|
|
</li>
|
|
)
|
|
}
|