blob: 54a3fa371eeb11cc540c7d60a14967c7bdb779b6 (
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-28 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;
|