You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
491 B
23 lines
491 B
const textSizes = {
|
|
"4xl": "text-4xl",
|
|
"3xl": "text-3xl",
|
|
"2xl": "text-2xl",
|
|
xl: "text-xl",
|
|
lg: "text-lg",
|
|
md: "text-md",
|
|
sm: "text-sm",
|
|
xs: "text-xs",
|
|
};
|
|
|
|
export default function Greeting({ options }) {
|
|
if (options.text) {
|
|
return (
|
|
<div className="flex flex-row items-center justify-start">
|
|
<span className={`text-theme-800 dark:text-theme-200 ${textSizes[options.text_size || "xl"]}`}>
|
|
{options.text}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
}
|