1
0
mirror of https://github.com/theoludwig/theoludwig.git synced 2026-05-06 13:48:12 +02:00
Files
.profile/packages/ui/src/Home/About/AboutList/AboutItem.tsx
T

25 lines
643 B
TypeScript

export interface AboutItemProps {
label: string
value: React.ReactNode
link?: string
}
export const AboutItem: React.FC<AboutItemProps> = (props) => {
const { label, value, link } = props
return (
<li className="flex items-center justify-between sm:justify-start">
<strong className="w-24 text-sm text-black lg:w-32 dark:text-white">{label}</strong>
<span className="block text-sm font-normal text-black dark:text-gray-lighter">
{link == null ? (
value
) : (
<a className="hover:underline" href={link}>
{value}
</a>
)}
</span>
</li>
)
}