1 import type { ComponentProps } from 'react';
3 import OrderableTableBody from '@proton/components/components/orderableTable/OrderableTableBody';
4 import type { ContactFormatted } from '@proton/shared/lib/interfaces/contacts';
5 import type { VCardContact } from '@proton/shared/lib/interfaces/contacts/VCard';
7 import MergeTableBodyRow from './MergeTableBodyRow';
9 interface Props extends Omit<ComponentProps<typeof OrderableTableBody>, 'colSpan'> {
10 contacts: ContactFormatted[];
11 vcardContacts?: VCardContact[];
12 highlightedID: string;
13 isChecked: { [ID: string]: boolean };
14 beDeleted: { [ID: string]: boolean };
15 onClickCheckbox: (ID: string) => void;
16 onClickDetails: (ID: string) => void;
17 onToggleDelete: (ID: string) => void;
20 const MergeTableBody = ({
31 <OrderableTableBody colSpan={4} {...rest} data-testid="merge-model:merge-table">
32 {contacts.map((Contact, i) => (
38 highlightedID={highlightedID}
41 onClickCheckbox={onClickCheckbox}
42 onClickDetails={onClickDetails}
43 onToggleDelete={onToggleDelete}
50 export default MergeTableBody;