"use client"; import { Handle, Position, type NodeProps, type Node } from "@xyflow/react"; import Image from "next/image"; import BaseNodeWrapper from "./base-node-wrapper"; type CompareNodeData = { leftUrl?: string; rightUrl?: string; _status?: string; }; export type CompareNode = Node; export default function CompareNode({ data, selected, }: NodeProps) { return (
🔀 Vergleich
{data.leftUrl ? ( Vergleich Bild A ) : (
Bild A
)}
{data.rightUrl ? ( Vergleich Bild B ) : (
Bild B
)}
); }