import AlertInfoBlock from '@/components/alert-info/block'; import { ExclamationCircleFilled } from '@ant-design/icons'; import { useIntl } from '@umijs/max'; import { useAddWorkerContext } from './add-worker-context'; import { NotesWrapper } from './constainers'; const VendorNotes = () => { const intl = useIntl(); const { summary } = useAddWorkerContext(); const workerCommand = summary.get('workerCommand') || ({ label: 'N/A', notes: [] } as { label: string; notes: string[] }); return ( } message={ workerCommand.notes?.length > 0 ? ( {workerCommand.notes.map((note: string, index: number) => (
  • ))}
    ) : null } >
    ); }; export default VendorNotes;