1 import Toggle from '@proton/components/components/toggle/Toggle';
2 import { AUTO_DELETE_SPAM_AND_TRASH_DAYS } from '@proton/shared/lib/mail/mailSettings';
7 autoDeleteSpamAndTrashDays?: number | null;
8 onToggle: (autoDeleteSpamAndTrashDays: number) => void;
12 const AutoDeleteSpamAndTrashDaysToggle = ({
14 autoDeleteSpamAndTrashDays = AUTO_DELETE_SPAM_AND_TRASH_DAYS.DISABLED,
22 checked={Boolean(autoDeleteSpamAndTrashDays)}
23 onChange={({ target }) =>
25 target.checked ? AUTO_DELETE_SPAM_AND_TRASH_DAYS.ACTIVE : AUTO_DELETE_SPAM_AND_TRASH_DAYS.DISABLED
29 data-testid={dataTestID}
34 export default AutoDeleteSpamAndTrashDaysToggle;