'use client';
import { TocPlugin } from '@platejs/toc/react';
import { TocElement } from '@/registry/ui/toc-node';
export const TocKit = [
TocPlugin.configure({
options: {
// isScroll: true,
topOffset: 80,
},
}).withComponent(TocElement),
];
npx shadcn@latest add @plate/toc-kitimport { TocKit } from "@/components/toc-kit"<TocKit />