1
0
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-12-12 20:46:52 +01:00
Files
.profile/packages/ui/src/Home/Interests/InterestItem.tsx

27 lines
576 B
TypeScript

import { Typography } from "../../Design/Typography/Typography.tsx"
export interface InterestItemProps {
title: string
description: React.ReactNode
}
export const InterestItem: React.FC<InterestItemProps> = (props) => {
const { title, description } = props
return (
<div className="my-6 text-center">
<Typography as="h3" variant="h4">
{title}
</Typography>
<Typography
as="p"
variant="text1"
className="dark:text-gray-lighter my-2 text-black"
>
{description}
</Typography>
</div>
)
}