import { useId, useRef, useState, type ReactNode } from "react"; import { BookOpen, Check, CheckCircle2, Copy, FileCheck2, FileText, Info, TriangleAlert, } from "lucide-react"; import type { Guidance } from "@/content/guides/catalog"; import s from "@/styles/guidance.module.css"; export const kindNames: Record = { guide: "操作指导", context: "背景知识", evidence: "事实依据", }; export function KindIcon({ kind, size = 18, }: { kind: Guidance["kind"]; size?: number; }) { const Icon = kind === "guide" ? FileText : kind === "context" ? BookOpen : FileCheck2; return