"use client" import { memo } from "react" import type { GraphNode } from "./types" interface NavigationControlsProps { onCenter: () => void onZoomIn: () => void onZoomOut: () => void onAutoFit: () => void nodes: GraphNode[] className?: string } export const NavigationControls = memo(({ onCenter, onZoomIn, onZoomOut, onAutoFit, nodes, className = "", }) => { if (nodes.length === 0) { return null } return (
) }) NavigationControls.displayName = "NavigationControls"