'use client';

import React, { memo } from 'react';
import { Video } from 'lucide-react';
import { NodeProps, Node } from '@xyflow/react';
import { AppNodeData } from '../../types/node';
import { BaseNode } from '../BaseNode';
import { MediaDisplayRenderer } from '../renderers/MediaDisplayRenderer';

type VideoGeneratorNodeType = Node<AppNodeData, 'appNode'>;

export const VideoGeneratorNode = memo(({ id, data, selected, dragging }: NodeProps<VideoGeneratorNodeType>) => {
    return (
        <BaseNode
            id={id}
            data={data}
            selected={selected}
            dragging={dragging}
            icon={Video}
            color="text-purple-400"
            border="border-purple-500/30"
            ring="ring-purple-500/50"
            shadow="shadow-[0_0_40px_-10px_rgba(192,132,252,0.3)]"
            renderer={MediaDisplayRenderer}
        />
    );
});

VideoGeneratorNode.displayName = 'VideoGeneratorNode';
