mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-05-29 22:37:44 +02:00
refactor: components struture
This commit is contained in:
26
packages/ui/src/Home/Interests/InterestItem.tsx
Normal file
26
packages/ui/src/Home/Interests/InterestItem.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import { Typography } from "../../Design/Typography/Typography"
|
||||
|
||||
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 my-2 text-black"
|
||||
>
|
||||
{description}
|
||||
</Typography>
|
||||
</div>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user