1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-05 13:01:30 +01:00
.profile/components/Interests/InterestsList/InterestItem.tsx

21 lines
566 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
2022-09-04 20:40:58 +02:00
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: React.FC<InterestItemProps> = (props) => {
2021-04-18 01:56:23 +02:00
const { fontAwesomeIcon, title } = props
return (
2021-12-04 15:52:51 +01:00
<li className='interest-item my-2 mx-2 h-8 w-8' title={title}>
<FontAwesomeIcon
2022-02-23 11:51:00 +01:00
className='block h-full w-full text-yellow dark:text-yellow-dark'
icon={fontAwesomeIcon}
/>
</li>
2021-04-18 01:56:23 +02:00
)
}