import { memo } from "react"; import { Handle, Position, type NodeProps } from "@xyflow/react"; import type { ErdColumn } from "@/types"; import { KeyRound, Link } from "lucide-react"; export interface ErdTableNodeData { label: string; schema: string; columns: ErdColumn[]; fkColumnNames: string[]; [key: string]: unknown; } function ErdTableNodeComponent({ data }: NodeProps) { const { label, columns, fkColumnNames } = data as unknown as ErdTableNodeData; return (