chores: 清除冗余变量
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
import { useGraphStore } from "../../store/graphStore";
|
import { useGraphStore } from "../../store/graphStore";
|
||||||
|
|
||||||
export function Toolbar() {
|
export function Toolbar() {
|
||||||
const { startCreatingNode, loading, refresh, setLayoutType, layoutType } =
|
const { startCreatingNode, loading, refresh } = useGraphStore();
|
||||||
useGraphStore();
|
|
||||||
|
|
||||||
const layouts = [{ type: "force" as const, label: "力导向", icon: "🕸️" }];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 px-4 py-2 flex items-center gap-2">
|
<div className="bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 px-4 py-2 flex items-center gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user