diff --git a/frontend/src/components/Toolbar/index.tsx b/frontend/src/components/Toolbar/index.tsx index fc69eac..017f16f 100644 --- a/frontend/src/components/Toolbar/index.tsx +++ b/frontend/src/components/Toolbar/index.tsx @@ -1,19 +1,10 @@ -import { useGraphStore } from '../../store/graphStore'; +import { useGraphStore } from "../../store/graphStore"; export function Toolbar() { - const { - startCreatingNode, - loading, - refresh, - setLayoutType, - layoutType, - } = useGraphStore(); + const { startCreatingNode, loading, refresh, setLayoutType, layoutType } = + useGraphStore(); - const layouts = [ - { type: 'force' as const, label: '力导向', icon: '🕸️' }, - { type: 'circular' as const, label: '圆形', icon: '⭕' }, - { type: 'grid' as const, label: '网格', icon: '▦' }, - ]; + const layouts = [{ type: "force" as const, label: "力导向", icon: "🕸️" }]; return (