18 lines
337 B
TypeScript
18 lines
337 B
TypeScript
import { getString } from "./BlockHelpers";
|
|||
|
|
|
||
|
|
export default function TitleBlock({
|
||
|
|
content,
|
||
|
|
}: {
|
||
|
|
content: Record<string, unknown>;
|
||
|
|
}) {
|
||
|
|
const text = getString(content, "text");
|
||
|
|
|
||
|
|
if (!text) return null;
|
||
|
|
|
||
|
|
return (
|
||
|
|
<h2 className="mb-6 mt-12 text-3xl font-bold leading-tight text-tb1 md:text-4xl">
|
||
|
|
{text}
|
||
|
|
</h2>
|
||
|
|
);
|
||
|
|
}
|