Remove useless component

This commit is contained in:
DefectingCat
2022-08-19 10:51:55 +08:00
parent f6cb2a8f74
commit 5c994cb2de

View File

@ -19,24 +19,6 @@ const TocItem = ({ item }: { item: SingleToc }) => {
</li>
);
};
const TocList = ({
toc,
children,
}: {
toc: SingleToc[];
children?: React.ReactElement;
}) => {
return (
<ul className="pl-4 border-l-4 border-gray-300 toc">
{toc.map((h) => (
<>
<TocItem key={h.head} item={h} />
{children}
</>
))}
</ul>
);
};
const PostToc = ({ toc, tocLength }: Props) => {
const [show, setShow] = useState(false);