'use client';

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

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

export const PromptInputNode = memo(({ id, data, selected, dragging }: NodeProps<PromptInputNodeType>) => {
    return (
        <BaseNode
            id={id}
            data={data}
            selected={selected}
            dragging={dragging}
            icon={Type}
            color="text-amber-400"
            border="border-amber-500/30"
            ring="ring-amber-500/50"
            shadow="shadow-[0_0_40px_-10px_rgba(245,158,11,0.3)]"
            renderer={PromptInputRenderer}
        />
    );
});

PromptInputNode.displayName = 'PromptInputNode';
