import { useReactFlow } from "@xyflow/react"; import { useState } from "react"; import React from "react"; import Markdown from "react-markdown"; // @ts-ignore import Trash from "~icons/tabler/trash"; import LynxKiteNode from "./LynxKiteNode"; import Table from "./Table"; function toMD(v: any): string { if (typeof v === "string") { return v; } if (Array.isArray(v)) { return v.map(toMD).join("\n\n"); } return JSON.stringify(v); } function displayTable(name: string, df: any) { if (df.data.length > 1) { return (
{(o as any).toString()}} > )), ]}