import type { FC } from 'react' import React from 'react' import type { NodeProps } from '@/app/components/workflow/types' import type { TeamChallengeNodeType } from './types' const Node: FC> = ({ data }) => { const { red_blue_challenge_id, defense_selection_policy, attack_selection_policy } = data return (
{red_blue_challenge_id ? (
Red/Blue
{red_blue_challenge_id}
) : (
Defense: {defense_selection_policy}
Attack: {attack_selection_policy}
)}
) } export default React.memo(Node)