| 1 | "use client"; |
| 2 | |
| 3 | import { TocPlugin } from "@platejs/toc/react"; |
| 4 | |
| 5 | import { TocElement } from "@/components/plate/ui/toc-node"; |
| 6 | |
| 7 | export const TocKit = [ |
| 8 | TocPlugin.configure({ |
| 9 | options: { |
| 10 | // isScroll: true, |
| 11 | topOffset: 80, |
| 12 | }, |
| 13 | }).withComponent(TocElement), |
| 14 | ]; |
| 15 |