Simplify recursive block

This commit is contained in:
DrMint 2023-08-20 11:50:11 +02:00
parent 6074ccceff
commit a613e57615
1 changed files with 2 additions and 14 deletions

View File

@ -1,9 +1,7 @@
import { cueBlock } from "./cueBlock";
import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks";
import { quoteBlock } from "./quoteBlock";
import { textBlock } from "./textBlock";
import { transcriptBlock } from "./transcriptBlock";
import { lineBlock } from "./lineBlock";
import { quoteBlock } from "./quoteBlock";
import { BlocksConfig, generateBlocks } from "../../../utils/recursiveBlocks";
const enum BlockName {
Text = "Text",
@ -11,8 +9,6 @@ const enum BlockName {
Tabs = "Tabs",
Tab = "Tab",
Transcript = "Transcript",
Line = "Line",
Cue = "Cue",
Quote = "Quote",
}
@ -76,14 +72,6 @@ const blocksConfig: BlocksConfig<BlockName> = {
root: true,
block: transcriptBlock,
},
Cue: {
root: false,
block: cueBlock,
},
Line: {
root: false,
block: lineBlock,
},
Quote: {
root: true,
block: quoteBlock,