--- import config from "virtual:starlight/user-config"; const links = config.social || []; // Built-in SVG icons (replacing Starlight's Icon component for social links) const BUILTIN: Record = { "x.com": '', "code-branch": '', }; // CGit 専用アイコン(cgit.yasutakeyohei.com の favicon に基づく) const CGIT_SVG = ''; --- { links.length > 0 && ( <> {links.map(({ label, href, icon }) => { const svg = label === "CGit" ? CGIT_SVG : (BUILTIN[String(icon)] || BUILTIN["code-branch"]); return ( {label} ); })} ) }