add colored horizontal rule block

This commit is contained in:
2024-05-21 01:00:22 +02:00
parent 4d9796fbe7
commit 82f18dd24a
8 changed files with 101 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import { RichTextBlock } from "./RichTextBlock";
import { ImageWithTextBlock } from "./ImageWithTextBlock";
import { ImageSliderBlock } from "./ImageSliderBlock";
import { HorizontalRuleBlock } from "./HorizontalRuleBlock";
export const Blocks = ({ blocks }: any) => {
return blocks.map((block: any) => {
@@ -14,6 +15,9 @@ export const Blocks = ({ blocks }: any) => {
case "ImageSliderBlock":
return <ImageSliderBlock block={block} />;
break;
case "HorizontalRuleBlock":
return <HorizontalRuleBlock block={block} />;
break;
default:
return <div>Unsupported block type {block.blockType}</div>;
console.log("unsupported block", block);