/** * OutputPreviewPanel - Shows output data preview for a node */ 'use client'; import React from 'react'; import type { WorkflowNode } from '../types'; import styles from '../../../scss/atoms/workflow-editor.module.scss'; const UpArrowIcon = () => ( ); interface OutputPreviewPanelProps { node: WorkflowNode; preview?: Record; } export function OutputPreviewPanel({ node, preview }: OutputPreviewPanelProps) { const mockPreview = preview || { result: { processed: true, items: ['transformed1', 'transformed2'] }, meta: { nodeId: node.id, executionTime: '12ms' }, }; return ( Output Preview {node.outputs.length} output{node.outputs.length !== 1 ? 's' : ''} {JSON.stringify(mockPreview, null, 2)} Run workflow to see actual output ); }
{JSON.stringify(mockPreview, null, 2)}
Run workflow to see actual output