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