Block Editor
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    "use client"
    import { Wysiwyg } from "@/components/ui/wysiwyg"
    import type { WysiwygType } from "@/types"
    import { useEffect, useState } from "react"
    interface Props {
      title: string
      subtitle: string
      text: WysiwygType
      showTableOfContents?: boolean
    }
    interface TableOfContentsItem {
      id: string
      text: string
      level: number
    }
    export default function Content({
      title,
      subtitle,
      text,
      showTableOfContents = true,
    }: Props) {
      const [tableOfContents, setTableOfContents] = useState<TableOfContentsItem[]>(
        []
      )

    No issues found