// The "说明" drawer: what everything on the page means. Open it anywhere with openHelp(section). import { useEffect, useRef, useState } from "react"; import { opLabel } from "./feed"; import { opHelp, stateHelp } from "./explain"; import { opColor, stateIcon, stateLabel, type NodeState } from "./replay"; export const openHelp = (section?: string) => dispatchEvent(new CustomEvent("help", { detail: section ?? "" })); export function HelpLink({ section, label = "?" }: { section: string; label?: string }) { return ; } const Dt = ({ k, children }: { k: React.ReactNode; children: React.ReactNode }) =>