diff --git a/src/components/nodes/InteractionNode.tsx b/src/components/nodes/InteractionNode.tsx new file mode 100644 index 0000000..b164103 --- /dev/null +++ b/src/components/nodes/InteractionNode.tsx @@ -0,0 +1,120 @@ +import { memo, useState } from 'react'; +import { Handle, Position } from '@xyflow/react'; +import type { NodeProps } from '@xyflow/react'; +import { MessageSquare, ChevronDown, ChevronUp } from 'lucide-react'; +import type { InteractionNodeData } from '../../types/nodes'; + +export const InteractionNode = memo(({ data }: NodeProps) => { + const [isExpanded, setIsExpanded] = useState(true); + const nodeData = data as InteractionNodeData; + + const handleChange = (field: keyof InteractionNodeData, value: string | undefined) => { + Object.assign(nodeData, { [field]: value }); + }; + + return ( +
+ Reference to a dialogue configuration +
++ MoLang script for custom interactions +
+