import type { FC } from 'react' import React from 'react' import type { NodeProps } from '@/app/components/workflow/types' import type { ChallengeEvaluatorNodeType } from './types' const Node: FC> = ({ data }) => { const { evaluation_mode, success_type, success_pattern, challenge_id } = data return (
{challenge_id ? (
Challenge
{challenge_id}
) : (
{evaluation_mode}
{success_type}
{success_pattern && (
"{success_pattern}"
)}
)}
) } export default React.memo(Node)