Newer
Older
import { InformationCircleIcon } from "@heroicons/react/outline"
import Tooltip from "./core/Tooltip"
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}>
<InformationCircleIcon className="text-secondary h-5 w-5 cursor-pointer" />
</Tooltip>
{subtitle && (
<h4
className={twMerge(
"mt-2 text-2xl font-bold",
oClass.subtitle
)}
>
{subtitle}{" "}
{oTooltip.subtitle ? (
<Tooltip text={oTooltip.subtitle}>
<InformationCircleIcon className="text-secondary h-5 w-5 cursor-pointer" />
</Tooltip>
) : (
<></>
)}
</h4>
)}
//"pt-10 text-justify text-xl leading-8 sm:text-2xl",
"pt-10 text-justify text-xl leading-8 ",
oClass.content
)}
dangerouslySetInnerHTML={{ __html: content }}
/>
{oTooltip.content ? (
<Tooltip text={oTooltip.content}>
<InformationCircleIcon className="text-secondary h-5 w-5 cursor-pointer" />
</Tooltip>
{action && action.name !== "" ? (
<Button
{...action}
className={twMerge(
"mt-10",
action.className,
oClass.action
)}
{...options.action}
/>
) : (
<></>