diff --git a/src/components/nodes/BattleConfigNode.tsx b/src/components/nodes/BattleConfigNode.tsx new file mode 100644 index 0000000..1c691ee --- /dev/null +++ b/src/components/nodes/BattleConfigNode.tsx @@ -0,0 +1,137 @@ +import { memo, useState } from 'react'; +import { Handle, Position } from '@xyflow/react'; +import type { NodeProps } from '@xyflow/react'; +import { Sword, ChevronDown, ChevronUp } from 'lucide-react'; +import type { BattleConfigNodeData } from '../../types/nodes'; + +export const BattleConfigNode = memo(({ data }: NodeProps) => { + const [isExpanded, setIsExpanded] = useState(true); + const nodeData = data as BattleConfigNodeData; + + const handleChange = (field: keyof BattleConfigNodeData, value: string | boolean | undefined) => { + Object.assign(nodeData, { [field]: value }); + }; + + return ( +