1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-02-08 21:59:39 +01:00

27 lines
659 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="dark:text-gray-lighter block text-sm font-normal text-black">
{link != null ? (
<a className="hover:underline" href={link}>
{value}
</a>
) : (
value
)}
</span>
</li>
)
}