1 import type { FC } from 'react';
3 import { c } from 'ttag';
5 import { Button } from '@proton/atoms/index';
6 import Icon from '@proton/components/components/icon/Icon';
7 import clsx from '@proton/utils/clsx';
9 import { useOnboarding } from './OnboardingProvider';
11 export const OnboardingState: FC<{ className?: string }> = ({ className }) => {
12 const { steps, launch, acknowledge, completed } = useOnboarding();
15 <div className="relative px-3">
23 className="absolute top-0 right-0 mx-4 mt-1"
25 <Icon name="cross-circle-filled" alt={c('Action').t`Close`} />
30 className={clsx('w-full shrink-0 border border-weak rounded-lg bg-weak ', className)}
32 <div className="flex justify-space-between items-center">
33 <div className="text-lg text-semibold">{c('Label').t`Get Started`}</div>
35 {steps.map(({ key, shortTitle }) => (
36 <div key={key} className="w-full text-left flex gap-2 items-center mt-2">
37 {completed.includes(key) ? (
38 <Icon name="checkmark-circle-filled" color="var(--signal-success)" />
40 <Icon name="circle" />