Fix frontend imports and track frontend lib files

This commit is contained in:
2026-03-21 09:22:10 +08:00
parent 83f7a66e32
commit 190cee20bd
8 changed files with 285 additions and 19 deletions

View File

@@ -1,11 +1,11 @@
"use client";
"use client";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import ReactFlow, { Background, Controls, MiniMap, type ReactFlowInstance } from "reactflow";
import "reactflow/dist/style.css";
import MindmapNodeCard from "@/components/MindmapNodeCard";
import { treeToGraph } from "@/lib/treeToGraph";
import type { MindmapNode } from "@/types/mindmap";
import MindmapNodeCard from "./MindmapNodeCard";
import { treeToGraph } from "../lib/treeToGraph";
import type { MindmapNode } from "../types/mindmap";
type MindmapCanvasProps = {
tree: MindmapNode;