From c5ccfc3e947f7b983efa0d0984acf150507e1091 Mon Sep 17 00:00:00 2001
From: Jay V <air@live.ca>
Date: Wed, 9 Jul 2025 14:25:50 -0400
Subject: docs: share page last part fix

---
 packages/web/src/components/CodeBlock.tsx | 32 -------------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 packages/web/src/components/CodeBlock.tsx

(limited to 'packages/web/src/components/CodeBlock.tsx')

diff --git a/packages/web/src/components/CodeBlock.tsx b/packages/web/src/components/CodeBlock.tsx
deleted file mode 100644
index 3702044b9..000000000
--- a/packages/web/src/components/CodeBlock.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { type JSX, splitProps, createResource } from "solid-js"
-import { codeToHtml } from "shiki"
-import styles from "./codeblock.module.css"
-import { transformerNotationDiff } from "@shikijs/transformers"
-
-interface CodeBlockProps extends JSX.HTMLAttributes<HTMLDivElement> {
-  code: string
-  lang?: string
-}
-function CodeBlock(props: CodeBlockProps) {
-  const [local, rest] = splitProps(props, ["code", "lang"])
-
-  const [html] = createResource(
-    () => [local.code, local.lang],
-    async ([code, lang]) => {
-      // TODO: For testing delays
-      // await new Promise((resolve) => setTimeout(resolve, 3000))
-      return (await codeToHtml(code || "", {
-        lang: lang || "text",
-        themes: {
-          light: "github-light",
-          dark: "github-dark",
-        },
-        transformers: [transformerNotationDiff()],
-      })) as string
-    },
-  )
-
-  return <div innerHTML={html()} class={styles.codeblock} {...rest}></div>
-}
-
-export default CodeBlock
-- 
cgit v1.2.3

