Skip to content
60 changes: 0 additions & 60 deletions src/components/Icon/Illustrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,39 +52,9 @@ import ToddBehindCloud from '@assets/images/product-illustrations/todd-behind-cl
import ToddInCar from '@assets/images/product-illustrations/todd-in-car.svg';
import ToddWithPhones from '@assets/images/product-illustrations/todd-with-phones.svg';
import RunningTurtle from '@assets/images/running-turtle.svg';
import Puzzle from '@assets/images/simple-illustrations/emptystate__puzzlepieces.svg';
import Abacus from '@assets/images/simple-illustrations/simple-illustration__abacus.svg';
import Alert from '@assets/images/simple-illustrations/simple-illustration__alert.svg';
import Approval from '@assets/images/simple-illustrations/simple-illustration__approval.svg';
import Binoculars from '@assets/images/simple-illustrations/simple-illustration__binoculars.svg';
import BlueShield from '@assets/images/simple-illustrations/simple-illustration__blueshield.svg';
import Buildings from '@assets/images/simple-illustrations/simple-illustration__buildings.svg';
import CarIce from '@assets/images/simple-illustrations/simple-illustration__car-ice.svg';
import Car from '@assets/images/simple-illustrations/simple-illustration__car.svg';
import PinkCar from '@assets/images/simple-illustrations/simple-illustration__car_pink.svg';
import ChatBubbles from '@assets/images/simple-illustrations/simple-illustration__chatbubbles.svg';
import CheckmarkCircle from '@assets/images/simple-illustrations/simple-illustration__checkmarkcircle.svg';
import CommentBubbles from '@assets/images/simple-illustrations/simple-illustration__commentbubbles.svg';
import ConciergeBubble from '@assets/images/simple-illustrations/simple-illustration__concierge-bubble.svg';
import CreditCardEyes from '@assets/images/simple-illustrations/simple-illustration__creditcardeyes.svg';
import CreditCardsNewGreen from '@assets/images/simple-illustrations/simple-illustration__creditcards--green.svg';
import EmailAddress from '@assets/images/simple-illustrations/simple-illustration__email-address.svg';
import EmptyShelves from '@assets/images/simple-illustrations/simple-illustration__empty-shelves.svg';
import Encryption from '@assets/images/simple-illustrations/simple-illustration__encryption.svg';
import EnvelopeReceipt from '@assets/images/simple-illustrations/simple-illustration__envelopereceipt.svg';
import Filters from '@assets/images/simple-illustrations/simple-illustration__filters.svg';
import Flash from '@assets/images/simple-illustrations/simple-illustration__flash.svg';
import Gears from '@assets/images/simple-illustrations/simple-illustration__gears.svg';
import HeadSet from '@assets/images/simple-illustrations/simple-illustration__headset.svg';
import Hourglass from '@assets/images/simple-illustrations/simple-illustration__hourglass.svg';
import House from '@assets/images/simple-illustrations/simple-illustration__house.svg';
import Lightbulb from '@assets/images/simple-illustrations/simple-illustration__lightbulb.svg';
import LockClosed from '@assets/images/simple-illustrations/simple-illustration__lockclosed.svg';
import LockClosedOrange from '@assets/images/simple-illustrations/simple-illustration__lockclosed_orange.svg';
import LockOpen from '@assets/images/simple-illustrations/simple-illustration__lockopen.svg';
import Luggage from '@assets/images/simple-illustrations/simple-illustration__luggage.svg';
import MagnifyingGlassReceipt from '@assets/images/simple-illustrations/simple-illustration__magnifyingglass-receipt.svg';
import Mailbox from '@assets/images/simple-illustrations/simple-illustration__mailbox.svg';
import ExpensifyMobileApp from '@assets/images/simple-illustrations/simple-illustration__mobileapp.svg';
import MoneyIntoWallet from '@assets/images/simple-illustrations/simple-illustration__moneyintowallet.svg';
import OpenSafe from '@assets/images/simple-illustrations/simple-illustration__opensafe.svg';
Expand Down Expand Up @@ -118,20 +88,14 @@ import TurtleInShell from '@assets/images/turtle-in-shell.svg';

export {
Abracadabra,
Encryption,
BrokenMagnifyingGlass,
ChatBubbles,
PinkCar,
Computer,
EmailAddress,
EmptyCardState,
EmptyStateExpenses,
EnvelopeReceipt,
ExpensifyCardImage,
PaymentHands,
MagicCode,
MagnifyingGlassReceipt,
Mailbox,
MushroomTopHat,
RocketBlue,
RocketDude,
Expand All @@ -141,61 +105,39 @@ export {
ToddInCar,
ShieldYellow,
BrokenCompanyCardBankConnection,
CreditCardsNewGreen,
LaptopWithSecondScreenAndHourglass,
LaptopWithSecondScreenSync,
LaptopWithSecondScreenX,
LockOpen,
Luggage,
MoneyIntoWallet,
ConciergeBubble,
TreasureChest,
ThumbsUpStars,
Hands,
HeadSet,
SmartScan,
Hourglass,
CommentBubbles,
TrashCan,
Profile,
Puzzle,
PalmTree,
LockClosed,
Gears,
QRCode,
RealtimeReport,
HoldExpense,
ReceiptFairy,
Approval,
PendingBank,
ThreeLeggedLaptopWoman,
House,
Buildings,
Alert,
TeachersUnite,
Abacus,
Binoculars,
ReceiptUpload,
SplitBill,
PiggyBank,
Pillow,
Car,
Pencil,
CarIce,
ReceiptLocationMarker,
Lightbulb,
Stopwatch,
SubscriptionAnnual,
SubscriptionPPU,
ExpensifyApprovedLogo,
SendMoney,
CheckmarkCircle,
CreditCardEyes,
LockClosedOrange,
FolderWithPapers,
VirtualCard,
Tire,
Filters,
RunningTurtle,
CompanyCardsPendingState,
VisaCompanyCardDetail,
Expand All @@ -220,7 +162,6 @@ export {
StripeCompanyCardDetailLarge,
VisaCompanyCardDetailLarge,
WellsFargoCompanyCardDetailLarge,
Flash,
ExpensifyMobileApp,
ModalHoldOrReject,
ThumbsDown,
Expand All @@ -229,7 +170,6 @@ export {
ReceiptsStackedOnPin,
PaperAirplane,
CardReplacementSuccess,
EmptyShelves,
BlueShield,
OpenSafe,
LaptopOnDeskWithCoffeeAndKey,
Expand Down
69 changes: 65 additions & 4 deletions src/components/Icon/chunks/illustrations.chunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,48 @@ import LaptopWithSecondScreenX from '@assets/images/laptop-with-second-screen-x.
import ModalHoldOrReject from '@assets/images/product-illustrations/modal-hold-or-reject.svg';
import TeleScope from '@assets/images/product-illustrations/telescope.svg';
import ToddBehindCloud from '@assets/images/product-illustrations/todd-behind-cloud.svg';
// Simple Illustrations - Core ones that are actually used
// Simple Illustrations - Bucket 3 (Common)
import Puzzle from '@assets/images/simple-illustrations/emptystate__puzzlepieces.svg';
import Abacus from '@assets/images/simple-illustrations/simple-illustration__abacus.svg';
// Simple Illustrations - Original core ones
import Accounting from '@assets/images/simple-illustrations/simple-illustration__accounting.svg';
import Alert from '@assets/images/simple-illustrations/simple-illustration__alert.svg';
import Approval from '@assets/images/simple-illustrations/simple-illustration__approval.svg';
import Binoculars from '@assets/images/simple-illustrations/simple-illustration__binoculars.svg';
import BlueShield from '@assets/images/simple-illustrations/simple-illustration__blueshield.svg';
import Building from '@assets/images/simple-illustrations/simple-illustration__building.svg';
import Buildings from '@assets/images/simple-illustrations/simple-illustration__buildings.svg';
import CarIce from '@assets/images/simple-illustrations/simple-illustration__car-ice.svg';
import Car from '@assets/images/simple-illustrations/simple-illustration__car.svg';
import PinkCar from '@assets/images/simple-illustrations/simple-illustration__car_pink.svg';
import ChatBubbles from '@assets/images/simple-illustrations/simple-illustration__chatbubbles.svg';
import CheckmarkCircle from '@assets/images/simple-illustrations/simple-illustration__checkmarkcircle.svg';
import Coins from '@assets/images/simple-illustrations/simple-illustration__coins.svg';
import CommentBubbles from '@assets/images/simple-illustrations/simple-illustration__commentbubbles.svg';
import ConciergeBubble from '@assets/images/simple-illustrations/simple-illustration__concierge-bubble.svg';
import CreditCardsNew from '@assets/images/simple-illustrations/simple-illustration__credit-cards.svg';
import CreditCardEyes from '@assets/images/simple-illustrations/simple-illustration__creditcardeyes.svg';
import CreditCardsNewGreen from '@assets/images/simple-illustrations/simple-illustration__creditcards--green.svg';
import EmailAddress from '@assets/images/simple-illustrations/simple-illustration__email-address.svg';
import EmptyShelves from '@assets/images/simple-illustrations/simple-illustration__empty-shelves.svg';
import Encryption from '@assets/images/simple-illustrations/simple-illustration__encryption.svg';
import EnvelopeReceipt from '@assets/images/simple-illustrations/simple-illustration__envelopereceipt.svg';
import Filters from '@assets/images/simple-illustrations/simple-illustration__filters.svg';
import Flash from '@assets/images/simple-illustrations/simple-illustration__flash.svg';
import FolderOpen from '@assets/images/simple-illustrations/simple-illustration__folder-open.svg';
import Gears from '@assets/images/simple-illustrations/simple-illustration__gears.svg';
import HandCard from '@assets/images/simple-illustrations/simple-illustration__handcard.svg';
import HeadSet from '@assets/images/simple-illustrations/simple-illustration__headset.svg';
import Hourglass from '@assets/images/simple-illustrations/simple-illustration__hourglass.svg';
import House from '@assets/images/simple-illustrations/simple-illustration__house.svg';
import InvoiceBlue from '@assets/images/simple-illustrations/simple-illustration__invoice.svg';
import Lightbulb from '@assets/images/simple-illustrations/simple-illustration__lightbulb.svg';
import LockClosed from '@assets/images/simple-illustrations/simple-illustration__lockclosed.svg';
import LockClosedOrange from '@assets/images/simple-illustrations/simple-illustration__lockclosed_orange.svg';
import LockOpen from '@assets/images/simple-illustrations/simple-illustration__lockopen.svg';
import Luggage from '@assets/images/simple-illustrations/simple-illustration__luggage.svg';
import MagnifyingGlassMoney from '@assets/images/simple-illustrations/simple-illustration__magnifyingglass-money.svg';
import Mailbox from '@assets/images/simple-illustrations/simple-illustration__mailbox.svg';
import MoneyReceipts from '@assets/images/simple-illustrations/simple-illustration__money-receipts.svg';
import MoneyWings from '@assets/images/simple-illustrations/simple-illustration__moneywings.svg';
import Pencil from '@assets/images/simple-illustrations/simple-illustration__pencil.svg';
Expand All @@ -34,6 +64,7 @@ import RealtimeReport from '@assets/images/simple-illustrations/simple-illustrat
import ReceiptWrangler from '@assets/images/simple-illustrations/simple-illustration__receipt-wrangler.svg';
import ReportReceipt from '@assets/images/simple-illustrations/simple-illustration__report-receipt.svg';
import Rules from '@assets/images/simple-illustrations/simple-illustration__rules.svg';
import ShieldYellow from '@assets/images/simple-illustrations/simple-illustration__shield.svg';
import Stopwatch from '@assets/images/simple-illustrations/simple-illustration__stopwatch.svg';
import Tag from '@assets/images/simple-illustrations/simple-illustration__tag.svg';
import ThumbsDown from '@assets/images/simple-illustrations/simple-illustration__thumbsdown.svg';
Expand Down Expand Up @@ -61,7 +92,7 @@ const Illustrations = {
Telescope: TeleScope, // Alias for consistency
ToddBehindCloud,

// Simple Illustrations
// Simple Illustrations - Original
Accounting,
Building,
Coins,
Expand All @@ -86,8 +117,38 @@ const Illustrations = {
BlueShield,
Pencil,
Luggage,
// Legacy aliases for compatibility
Car: CompanyCard, // Fallback for Car illustration requests

// Simple Illustrations - Bucket 3 (Common)
Puzzle,
Abacus,
Alert,
Approval,
Binoculars,
Buildings,
Car,
PinkCar,
ChatBubbles,
CheckmarkCircle,
CommentBubbles,
ConciergeBubble,
CreditCardEyes,
CreditCardsNewGreen,
EmailAddress,
EmptyShelves,
Encryption,
EnvelopeReceipt,
Filters,
Flash,
Gears,
HeadSet,
Hourglass,
House,
Lightbulb,
LockClosed,
LockClosedOrange,
LockOpen,
Mailbox,
ShieldYellow,
};

/**
Expand Down
6 changes: 4 additions & 2 deletions src/components/OnboardingHelpDropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import {addMinutes} from 'date-fns';
import React from 'react';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import {useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
import useThemeStyles from '@hooks/useThemeStyles';
Expand All @@ -16,8 +17,7 @@
import type {ReportNameValuePairs} from '@src/types/onyx';
import ButtonWithDropdownMenu from './ButtonWithDropdownMenu';
import type {DropdownOption, OnboardingHelpType} from './ButtonWithDropdownMenu/types';
import {CalendarSolid, Close, Monitor} from './Icon/Expensicons';

Check warning on line 20 in src/components/OnboardingHelpDropdownButton.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

'./Icon/Expensicons' import is restricted from being used by a pattern. Direct imports from Icon/Expensicons are deprecated. Please use lazy loading hooks instead. Use `useMemoizedLazyExpensifyIcons` from @hooks/useLazyAsset. See docs/LAZY_ICONS_AND_ILLUSTRATIONS.md for details
import * as Illustrations from './Icon/Illustrations';

type OnboardingHelpButtonProps = {
/** The ID of onboarding chat report */
Expand Down Expand Up @@ -51,6 +51,8 @@
const currentUserPersonalDetails = useCurrentUserPersonalDetails();
const userTimezone = currentUserPersonalDetails?.timezone?.selected ? currentUserPersonalDetails?.timezone.selected : CONST.DEFAULT_TIME_ZONE.selected;

const illustrations = useMemoizedLazyIllustrations(['HeadSet'] as const);

if (!reportID || !accountID) {
return null;
}
Expand Down Expand Up @@ -84,7 +86,7 @@
)} ${DateUtils.getZoneAbbreviation(new Date(latestScheduledCall.eventTime), userTimezone)}`,
descriptionTextStyle: [styles.themeTextColor, styles.ml2],
displayInDefaultIconColor: true,
icon: Illustrations.HeadSet,
icon: illustrations.HeadSet,
iconWidth: variables.avatarSizeLargeNormal,
iconHeight: variables.avatarSizeLargeNormal,
wrapperStyle: [styles.mb3, styles.pl4, styles.pr5, styles.pt3, styles.pb6, styles.borderBottom],
Expand Down
17 changes: 12 additions & 5 deletions src/libs/SubscriptionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import {fromZonedTime} from 'date-fns-tz';
import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
import Onyx from 'react-native-onyx';
import type {SvgProps} from 'react-native-svg';
import type {ValueOf} from 'type-fest';
import * as Illustrations from '@components/Icon/Illustrations';
import type {LocalizedTranslate} from '@components/LocaleContextProvider';
import type {PreferredCurrency} from '@hooks/usePreferredCurrency';
import type {PersonalPolicyTypeExcludedProps} from '@pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCard';
Expand All @@ -13,6 +11,7 @@
import ONYXKEYS from '@src/ONYXKEYS';
import type {BillingGraceEndPeriod, BillingStatus, Fund, FundList, IntroSelected, Policy, StripeCustomerID} from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import type IconAsset from '@src/types/utils/IconAsset';
import {convertToShortDisplayString} from './CurrencyUtils';
import {getOwnedPaidPolicies, isPolicyOwner} from './PolicyUtils';

Expand Down Expand Up @@ -44,12 +43,17 @@
subtitle: string;
note: string | undefined;
benefits: string[];
src: React.FC<SvgProps>;
src: IconAsset;
description: string;
};

type SubscriptionPlanIllustrations = {
Mailbox: IconAsset;
ShieldYellow: IconAsset;
};

let currentUserAccountID = -1;
Onyx.connect({

Check warning on line 56 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.SESSION,
callback: (value) => {
currentUserAccountID = value?.accountID ?? CONST.DEFAULT_NUMBER_ID;
Expand All @@ -57,25 +61,25 @@
});

let amountOwed: OnyxEntry<number>;
Onyx.connect({

Check warning on line 64 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_PRIVATE_AMOUNT_OWED,
callback: (value) => (amountOwed = value),
});

let billingStatus: OnyxEntry<BillingStatus>;
Onyx.connect({

Check warning on line 70 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_PRIVATE_BILLING_STATUS,
callback: (value) => (billingStatus = value),
});

let ownerBillingGraceEndPeriod: OnyxEntry<number>;
Onyx.connect({

Check warning on line 76 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_PRIVATE_OWNER_BILLING_GRACE_PERIOD_END,
callback: (value) => (ownerBillingGraceEndPeriod = value),
});

let fundList: OnyxEntry<FundList>;
Onyx.connect({

Check warning on line 82 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.FUND_LIST,
callback: (value) => {
if (!value) {
Expand All @@ -87,14 +91,14 @@
});

let userBillingGraceEndPeriodCollection: OnyxCollection<BillingGraceEndPeriod>;
Onyx.connect({

Check warning on line 94 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_USER_BILLING_GRACE_PERIOD_END,
callback: (value) => (userBillingGraceEndPeriodCollection = value),
waitForCollectionCallback: true,
});

let allPolicies: OnyxCollection<Policy>;
Onyx.connect({

Check warning on line 101 in src/libs/SubscriptionUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.POLICY,
callback: (value) => (allPolicies = value),
waitForCollectionCallback: true,
Expand Down Expand Up @@ -555,6 +559,7 @@
preferredCurrency: PreferredCurrency,
isFromComparisonModal: boolean,
hasTeam2025Pricing: boolean,
illustrations: Record<'Mailbox' | 'ShieldYellow', IconAsset>,
): SubscriptionPlanInfo {
const priceValue = getSubscriptionPrice(subscriptionPlan, preferredCurrency, privateSubscriptionType, hasTeam2025Pricing);
const price = convertToShortDisplayString(priceValue, preferredCurrency);
Expand Down Expand Up @@ -587,7 +592,7 @@
translate('subscription.yourPlan.collect.benefit7'),
translate('subscription.yourPlan.collect.benefit8'),
],
src: Illustrations.Mailbox,
src: illustrations.Mailbox,
description: translate('subscription.yourPlan.collect.description'),
};
}
Expand All @@ -606,7 +611,7 @@
translate('subscription.yourPlan.control.benefit7'),
translate('subscription.yourPlan.control.benefit8'),
],
src: Illustrations.ShieldYellow,
src: illustrations.ShieldYellow,
description: translate('subscription.yourPlan.control.description'),
};
}
Expand Down Expand Up @@ -634,3 +639,5 @@
getSubscriptionPlanInfo,
getSubscriptionPrice,
};

export type {SubscriptionPlanIllustrations};
23 changes: 14 additions & 9 deletions src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import {useIsFocused} from '@react-navigation/native';
import React, {useCallback, useImperativeHandle, useRef} from 'react';
import React, {useCallback, useImperativeHandle, useMemo, useRef} from 'react';
import {InteractionManager, View} from 'react-native';
import {ScrollView} from 'react-native-gesture-handler';
import FormHelpMessage from '@components/FormHelpMessage';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import * as Illustrations from '@components/Icon/Illustrations';

Check warning on line 7 in src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

'@components/Icon/Illustrations' import is restricted from being used by a pattern. Direct imports from Icon/Illustrations are deprecated. Please use lazy loading hooks instead. Use `useMemoizedLazyIllustrations` from @hooks/useLazyAsset. See docs/LAZY_ICONS_AND_ILLUSTRATIONS.md for details

Check warning on line 7 in src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

'@components/Icon/Illustrations' import is restricted from being used. Direct imports from @components/Icon/Illustrations are deprecated. Please use lazy loading hooks instead. Use `useMemoizedLazyIllustrations` from @hooks/useLazyAsset. See docs/LAZY_ICONS_AND_ILLUSTRATIONS.md for details
import type {MenuItemProps} from '@components/MenuItem';
import MenuItemList from '@components/MenuItemList';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import {useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnboardingMessages from '@hooks/useOnboardingMessages';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -39,17 +40,21 @@
return selectableOnboardingChoices.filter((choice) => customChoices.includes(choice));
}

const menuIcons = {
[CONST.ONBOARDING_CHOICES.EMPLOYER]: Illustrations.ReceiptUpload,
[CONST.ONBOARDING_CHOICES.MANAGE_TEAM]: Illustrations.Abacus,
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: Illustrations.PiggyBank,
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: Illustrations.SplitBill,
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: Illustrations.Binoculars,
};

function BaseOnboardingPurpose({shouldUseNativeStyles, shouldEnableMaxHeight, route}: BaseOnboardingPurposeProps) {
const styles = useThemeStyles();
const {translate} = useLocalize();
const illustrations = useMemoizedLazyIllustrations(['Abacus', 'Binoculars'] as const);

const menuIcons = useMemo(
() => ({
[CONST.ONBOARDING_CHOICES.EMPLOYER]: Illustrations.ReceiptUpload,
[CONST.ONBOARDING_CHOICES.MANAGE_TEAM]: illustrations.Abacus,
[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND]: Illustrations.PiggyBank,
[CONST.ONBOARDING_CHOICES.CHAT_SPLIT]: Illustrations.SplitBill,
[CONST.ONBOARDING_CHOICES.LOOKING_AROUND]: illustrations.Binoculars,
}),
[illustrations.Abacus, illustrations.Binoculars],
);
const {onboardingIsMediumOrLargerScreenWidth} = useResponsiveLayout();
const [account] = useOnyx(ONYXKEYS.ACCOUNT, {canBeMissing: true});
const {onboardingMessages} = useOnboardingMessages();
Expand Down
Loading
Loading