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