1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import { useSubscriptionModal } from '@proton/components/containers/payments/subscription/SubscriptionModalProvider';
5 import { SUBSCRIPTION_STEPS } from '@proton/components/containers/payments/subscription/constants';
11 const BreachListUpgradeLink = ({ total }: Props) => {
12 const [openSubscriptionModal] = useSubscriptionModal();
17 const handleUpgradeClick = () => {
18 openSubscriptionModal({
19 step: SUBSCRIPTION_STEPS.PLAN_SELECTION,
24 const numOfBreaches = total - 1;
27 <div className="text-center color-weak">
28 <span className="block text-md text-bold ">{c('Info').jt`Plus ${numOfBreaches} more`}</span>
30 onClick={handleUpgradeClick}
34 data-testid="explore-other-plan"
35 >{c('Action').t`Upgrade to view all`}</Button>
40 export default BreachListUpgradeLink;