feat: adiciona elemento opicional

This commit is contained in:
Vitor Soares 2023-01-20 19:45:12 -03:00
parent 6853415cf7
commit 40fd6246dc

View File

@ -0,0 +1,18 @@
interface OptionElementProps {
title: string;
children?: any;
h2Class?: string;
}
export function OptionElement({
title,
children,
h2Class,
}: OptionElementProps) {
return (
<>
<h2 className={h2Class ?? ""}>{title}</h2>
{children}
</>
);
}