import { useGrimoire } from "@/core/state"; import { useCopy } from "@/hooks/useCopy"; import { SyntaxHighlight } from "@/components/SyntaxHighlight"; import { CodeCopyButton } from "@/components/CodeCopyButton"; export function DebugViewer() { const { state } = useGrimoire(); const { copy, copied } = useCopy(); const stateJson = JSON.stringify(state, null, 2); const handleCopy = () => { copy(stateJson); }; return (