'use client';

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

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

export const InfoDisplayNode = memo(({ id, data, selected, dragging }: NodeProps<InfoDisplayNodeType>) => {
    return (
        <BaseNode
            id={id}
            data={data}
            selected={selected}
            dragging={dragging}
            icon={Info}
            color="text-blue-400"
            border="border-blue-500/30"
            ring="ring-blue-500/50"
            shadow="shadow-[0_0_40px_-10px_rgba(96,165,250,0.3)]"
            renderer={InfoDisplayRenderer}
        />
    );
});

InfoDisplayNode.displayName = 'InfoDisplayNode';
