import { register } from "@antv/x6-react-shape"; import { Graph, Node } from "@antv/x6"; import CustomInput from "../../CustomInput"; import { useSizeHook, useShapeProps } from "../../../hooks"; const component = ({ node }: { node: Node }) => { const { label, text, fill, stroke, opacity, name } = node.getData(); const { size, ref } = useSizeHook(); const { fillContent, defsContent, strokeColor, strokeWidth, strokeDasharray, } = useShapeProps(fill, size, stroke); const { width, height } = size; const circleSize = 4; const handleSetName = (val: string) => { node.setData({ name: val }); }; return ( <>