import { THit } from '@/lib/blocks/components/AmlBlock/utils/aml-adapter'; import React, { useMemo } from 'react'; import { buttonVariants } from '@/common/components/atoms/Button/Button'; import dayjs from 'dayjs'; import { TextWithNAFallback } from '@ballerine/ui'; interface IAmlMatchProps { match: { pep: THit['pep']; warnings: THit['warnings']; sanctions: THit['sanctions']; adverseMedia: THit['adverseMedia']; fitnessProbity: THit['fitnessProbity']; other: THit['other']; }; } export const AmlMatch = ({ match }: IAmlMatchProps) => { const orderedTypes = useMemo( () => [ { key: 'pep', header: 'PEP' }, { key: 'warnings', header: 'Warnings' }, { key: 'sanctions', header: 'Sanctions' }, { key: 'adverseMedia', header: 'Adverse Media' }, { key: 'fitnessProbity', header: 'Fitness Probity' }, { key: 'other', header: 'Other' }, ], [], ); return (