diff --git a/src/app/components/generator/McdocRenderer.tsx b/src/app/components/generator/McdocRenderer.tsx
index fb914301..d053a90b 100644
--- a/src/app/components/generator/McdocRenderer.tsx
+++ b/src/app/components/generator/McdocRenderer.tsx
@@ -2,26 +2,27 @@ import type { JsonNode } from '@spyglassmc/json'
import { JsonArrayNode, JsonBooleanNode, JsonNumberNode, JsonObjectNode, JsonStringNode } from '@spyglassmc/json'
import type { ListType, LiteralType, McdocType } from '@spyglassmc/mcdoc'
import type { SimplifiedStructType } from '@spyglassmc/mcdoc/lib/runtime/checker/index.js'
+import { useCallback } from 'preact/hooks'
import { useLocale } from '../../contexts/Locale.jsx'
-import type { Edit } from '../../services/Spyglass.js'
+import type { AstEdit } from '../../services/Spyglass.js'
import { Octicon } from '../Octicon.jsx'
interface Props {
node: JsonNode | undefined
- makeEdits: (edits: Edit[]) => void
+ makeEdit: (edit: AstEdit) => void
}
-export function McdocRoot({ node, makeEdits } : Props) {
+export function McdocRoot({ node, makeEdit } : Props) {
const type = node?.typeDef ?? { kind: 'unsafe' }
if (type.kind === 'struct') {
- return