1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import { Icon } from '@proton/components';
5 import { DESKTOP_PLATFORMS } from '@proton/shared/lib/constants';
6 import macosImg from '@proton/styles/assets/img/onboarding/drive-v2-macos.svg';
7 import windowsImg from '@proton/styles/assets/img/onboarding/drive-v2-windows.svg';
9 import { Actions, countActionWithTelemetry } from '../../../../utils/telemetry';
10 import { Container } from '../Container';
11 import { IconList } from '../IconList';
12 import type { OnboardingProps } from '../interface';
14 type Props = OnboardingProps & {
16 platform: DESKTOP_PLATFORMS;
19 export const DesktopAppStep = ({ platform }: Props) => {
22 title={c('Onboarding Info').t`Get the desktop app`}
23 subtitle={c('Onboarding Info').t`Work faster, smarter`}
24 image={platform === DESKTOP_PLATFORMS.MACOS ? macosImg : windowsImg}
30 text: c('Onboarding Info').t`Faster uploads for large or multiple files`,
34 text: c('Onboarding Info').t`Organize files right from your desktop`,
38 text: c('Onboarding Info').t`Free up hard drive space on your computer`,
46 export const DesktopAppStepButtons = ({ platform, download, onNext }: Props) => {
48 <div className="w-full flex justify-space-between">
54 countActionWithTelemetry(Actions.OnboardingV2InstallSkip);
58 {c('Onboarding Action').t`Install later`}
62 className="flex items-center justify-center gap-2"
66 if (platform === DESKTOP_PLATFORMS.MACOS) {
67 countActionWithTelemetry(Actions.OnboardingV2InstallMacApp);
68 } else if (platform === DESKTOP_PLATFORMS.WINDOWS) {
69 countActionWithTelemetry(Actions.OnboardingV2InstallWindowsApp);
76 <Icon name="arrow-down-line" />
77 <span>{c('Onboarding Action').t`Install and continue`}</span>