import { geometryErrorsById } from '../issues' import { useEditorStore } from '../state/editorStore' /** What still names this annotation as invalid: never hidden, never shown as valid. */ export function useGeometryIssues(id: string): string[] { const state = useEditorStore((s) => s.previewState) const issues = state ? geometryErrorsById(state).get(id) : undefined return [...new Set((issues ?? []).map((issue) => issue.message))] }