import type { FC } from 'react' import React from 'react' import { RiMailSendFill, RiRobot2Fill, } from '@remixicon/react' import type { HumanInputNodeType } from './types' import type { NodeProps } from '@/app/components/workflow/types' import { DeliveryMethodType } from './types' const Node: FC> = ({ data, }) => { const deliveryMethods = data.deliveryMethod || [] return (
delivery method
{deliveryMethods.map(method => (
{method.type === DeliveryMethodType.WebApp && (
)} {method.type === DeliveryMethodType.Email && (
)} {method.type}
))}
) } export default React.memo(Node)