'use client';

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

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

export const VideoAnalyzerNode = memo(({ id, data, selected, dragging }: NodeProps<VideoAnalyzerNodeType>) => {
    return (
        <BaseNode
            id={id}
            data={data}
            selected={selected}
            dragging={dragging}
            icon={FileSearch}
            color="text-emerald-400"
            border="border-emerald-500/30"
            ring="ring-emerald-500/50"
            shadow="shadow-[0_0_40px_-10px_rgba(52,211,153,0.3)]"
            renderer={VideoAnalyzerRenderer}
        />
    );
});

VideoAnalyzerNode.displayName = 'VideoAnalyzerNode';
