render articles
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user