1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-05 04:51:30 +01:00
.profile/components/Profile/ProfileList/ProfileItem.tsx

30 lines
786 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
interface ProfileItemProps {
title: string
value: string
link?: string
}
export const ProfileItem: React.FC<ProfileItemProps> = (props) => {
2021-04-18 01:56:23 +02:00
const { title, value, link } = props
return (
2021-12-04 15:52:51 +01:00
<li className='mb-3 before:table after:clear-both after:table'>
<strong className='float-left block w-28 text-xs font-bold uppercase text-black dark:text-white'>
{title}
</strong>
<span className='profile-list__item-info ml-0 mb-4 block text-sm font-normal text-gray dark:text-gray-dark sm:mb-0 sm:ml-32'>
{link != null ? (
<a
className='text-gray hover:underline dark:text-gray-dark'
href={link}
>
{value}
</a>
) : (
value
)}
</span>
</li>
2021-04-18 01:56:23 +02:00
)
}