1 import { ButtonLike } from '@proton/atoms';
2 import Icon from '@proton/components/components/icon/Icon';
3 import SettingsLink from '@proton/components/components/link/SettingsLink';
5 import RecoveryStatusIcon from './RecoveryStatusIcon';
6 import RecoveryStatusText from './RecoveryStatusText';
8 export interface RecoveryCardStatusProps {
9 type: 'info' | 'success' | 'warning' | 'danger';
17 const RecoveryCardStatus = ({ type, statusText, callToActions: items = [] }: RecoveryCardStatusProps) => {
20 <span className="flex items-center flex-nowrap">
21 <RecoveryStatusIcon className="shrink-0" type={type} />
22 <RecoveryStatusText className="ml-4" type={type}>
27 {items.length > 0 && (
28 <ul className="unstyled ml-14">
29 {items.map(({ text, path }) => {
31 <li key={text} className="flex items-center flex-nowrap">
32 <span className="mr-2">{text}</span>
42 <Icon name="arrow-right" alt={text} />
53 export default RecoveryCardStatus;