Checkpoint

This commit is contained in:
2026-07-28 03:53:38 -03:00
parent 0f506ec19e
commit 435e4e58e8
26 changed files with 1174 additions and 48 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
import { docs } from "collections/server";
import { loader } from "fumadocs-core/source";
import { icons } from "lucide-react";
import { icons as lucide } from "lucide-react";
import * as simple from "@icons-pack/react-simple-icons";
import { createElement } from "react";
import { docsContentRoute, docsImageRoute, docsRoute } from "./shared";
@@ -15,7 +16,10 @@ export const source = loader({
return;
}
if (icon in icons) return createElement(icons[icon as keyof typeof icons]);
if (icon in lucide)
return createElement(lucide[icon as keyof typeof lucide]);
if (icon in simple)
return createElement(simple[icon as keyof typeof simple]);
},
});