Newer
Older
content?: string
className?: string
action?: {
name?: string
url?: string
className?: string
}
const { title, content, className = "", action, subtitle } = props
const options = props.options ?? {}
const oClass = options.class || {}
<div className={twMerge(oClass.main, className)}>
{title && (
<h2
className={twMerge(
"text-2xl font-extrabold sm:text-4xl",
<Tooltip text={oTooltip.title} />
{subtitle && (
<h4
className={twMerge(
"mt-2 text-2xl font-bold",
oClass.subtitle
)}
>
{subtitle}
<Tooltip text={oTooltip.subtitle} />
//"pt-10 text-justify text-xl leading-8 sm:text-2xl",
"pt-10 text-justify text-xl leading-8 ",
oClass.content
)}
dangerouslySetInnerHTML={{ __html: content }}
/>
<Tooltip text={oTooltip.content} />
{action && action.name !== "" ? (
<Button
{...action}
className={twMerge(
"mt-10",
action.className,
oClass.action
)}
{...options.action}
/>
) : (
<></>