import { setup as setup2 } from "../scrapbox-local-graph/mod.tsx"; // 現状だとmobileでクラッシュする if (!/mobile/i.test(navigator.userAgent)) { const { open, close, isOpen } = setup2( document.documentElement.dataset?.projectTheme?.includes?.("dark") || scrapbox.Project.name === "takker" ? "svg { --graph-link: #5a5a5a; }" : "" ); close(); scrapbox.PageMenu.addItem({ title: "toggle Local Graph", onClick: () => { isOpen() ? close(): open(); }, }); }