import { CodeIcon, DocumentTextIcon, ExternalLinkIcon, } from "@heroicons/react/solid" import type { AppLinkProps } from "~/components/app-link" import { createContentIndex } from "~/helpers/create-index.server" import { inlineIconClass } from "~/styles" export const mainLinks: AppLinkProps[] = [ { type: "router", to: "/docs/guides/getting-started", label: ( <> Guides ), }, { type: "internal", to: "/docs/api", label: ( <> API Reference ), }, { type: "external", to: "https://github.com/itsMapleLeaf/reacord", label: ( <> GitHub ), }, ] export async function getGuideLinks(): Promise { const entries = await createContentIndex("app/routes/docs/guides") return entries.map((entry) => ({ type: "router", label: entry.title, to: entry.route, })) }