Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 21x 6x 6x 21x 21x 21x | import {
BankIcon,
BriefcaseIcon,
FileSearchIcon,
ListChecksIcon,
StorefrontIcon,
UserIcon,
} from "@phosphor-icons/react";
import { ReactNode } from "react";
export const iconMapper = (name: string, size = 20) => {
const obj: Record<string, ReactNode> = {
merchant_onboarding: <ListChecksIcon size={size} />,
primary_account_holder: <UserIcon size={size} />,
business_profile: <BriefcaseIcon size={size} />,
bank_account: <BankIcon size={size} />,
enhanced_due_diligence: <FileSearchIcon size={size} />,
merchant_specific: <StorefrontIcon size={size} />,
};
return obj[name];
};
export const SyncApprovedNotification = {
primary_account_holder: "The PAH was already approved for another entity",
bank_account: "The Bank Account was already approved for another entity",
business_profile:
"The Business Profile was already approved for another entity",
};
export const AUTOCOMPLETE_CHALLENGES = [
"bank_account",
"primary_account_holder",
"business_profile",
];
export const AUTOCOMPLETE_SLUG_MAP = {
business_profile1: "business_profile",
business_owner1: "business_profile",
business_owner2: "business_profile",
business_owner3: "business_profile",
business_owner4: "business_profile",
bank_account1: "business_profile",
bank_account3: "business_profile",
primary1: "primary_account_holder",
primary2: "primary_account_holder",
primary3: "primary_account_holder",
merchant_info3: "business_profile",
};
|