2021-04-18 01:56:23 +02:00
|
|
|
interface ProfileItemProps {
|
|
|
|
title: string
|
|
|
|
value: string
|
|
|
|
link?: string
|
|
|
|
}
|
|
|
|
|
2021-05-08 19:52:04 +02:00
|
|
|
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'>
|
2022-02-22 21:19:42 +01:00
|
|
|
<strong className='float-left block w-28 text-sm font-bold text-black dark:text-white'>
|
2021-12-04 15:52:51 +01:00
|
|
|
{title}
|
|
|
|
</strong>
|
2023-04-02 22:44:09 +02:00
|
|
|
<span className='mb-4 ml-0 block text-sm font-normal text-gray dark:text-gray-dark sm:mb-0 sm:ml-32'>
|
2021-12-04 15:52:51 +01:00
|
|
|
{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
|
|
|
)
|
|
|
|
}
|