/**
 * Legacy hook surface.
 *
 * Arrow-key navigation now lives in the shared input runtime under
 * `InputProvider`. This hook remains as a read-only helper so callers
 * can still observe focused node state without mounting another listener.
 */

'use client';

import { useAtomValue } from 'jotai';
import { focusedNodeIdAtom } from '../core/selection-store';

export function useArrowKeyNavigation() {
	const focusedNodeId = useAtomValue(focusedNodeIdAtom);
	return { focusedNodeId };
}

