blob: a19f4a9ba14148fd3c7cec4fe2c611647aae911a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
interface DividerProps {
text: string;
description?: string;
}
const Divider = (props: DividerProps) => {
return (
<div className="flex flex-col items-center justify-center bg-black h-24 mx-24 rounded-xl px-72">
<div className="px-2 mt-2 text-white text-4xl font-extrabold">
{props.text}
</div>
{props.description && (
<div className="px-2 my-2 text-white text-lg font-medium">
{props.description}
</div>
)}
</div>
);
};
export default Divider;
|