From d1014de68415df8f0a5dc3389332e086119c6198 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Thu, 27 Nov 2025 04:02:06 +0900
Subject: refactor(nuldoc): eliminate JSX

---
 .../nuldoc-src/components/TableOfContents.tsx      | 33 ----------------------
 1 file changed, 33 deletions(-)
 delete mode 100644 services/nuldoc/nuldoc-src/components/TableOfContents.tsx

(limited to 'services/nuldoc/nuldoc-src/components/TableOfContents.tsx')

diff --git a/services/nuldoc/nuldoc-src/components/TableOfContents.tsx b/services/nuldoc/nuldoc-src/components/TableOfContents.tsx
deleted file mode 100644
index 29907d0..0000000
--- a/services/nuldoc/nuldoc-src/components/TableOfContents.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import { TocEntry, TocRoot } from "../djot/document.ts";
-
-type Props = {
-  toc: TocRoot;
-};
-
-export default function TableOfContents({ toc }: Props) {
-  return (
-    <nav className="toc">
-      <h2>目次</h2>
-      <ul>
-        {toc.entries.map((entry, index) => (
-          <TocEntryComponent key={String(index)} entry={entry} />
-        ))}
-      </ul>
-    </nav>
-  );
-}
-
-function TocEntryComponent({ entry }: { entry: TocEntry }) {
-  return (
-    <li>
-      <a href={`#${entry.id}`}>{entry.text}</a>
-      {entry.children.length > 0 && (
-        <ul>
-          {entry.children.map((child, index) => (
-            <TocEntryComponent key={String(index)} entry={child} />
-          ))}
-        </ul>
-      )}
-    </li>
-  );
-}
-- 
cgit v1.2.3-70-g09d2

