1 import type { ReactNode } from 'react';
2 import { useEffect } from 'react';
4 import useApi from '@proton/components/hooks/useApi';
5 import { useInboxDesktopMetrics } from '@proton/components/hooks/useInboxDesktopMetrics';
6 import { getInboxDesktopInfo, hasInboxDesktopFeature } from '@proton/shared/lib/desktop/ipcHelpers';
7 import { reportClientLaunch } from '@proton/shared/lib/desktop/reportClientLaunch';
8 import { isElectronMail } from '@proton/shared/lib/helpers/desktop';
14 const PublicAppSetup = ({ children }: Props) => {
18 if (isElectronMail && hasInboxDesktopFeature('InstallSource')) {
19 void reportClientLaunch(getInboxDesktopInfo('installSource'), 'mail', api);
23 useInboxDesktopMetrics();
28 export default PublicAppSetup;