1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import ModalContent from '@proton/components/components/modalTwo/ModalContent';
5 import { useSubscriptionModal } from '@proton/components/containers/payments/subscription/SubscriptionModalProvider';
6 import { SUBSCRIPTION_STEPS } from '@proton/components/containers/payments/subscription/constants';
7 import sentinelBoltShield from '@proton/styles/assets/img/illustrations/sentinel-shield-bolt-breach-alert.svg';
9 import './UnlockReportModal.scss';
11 const UnlockBreachReportCard = () => {
12 const [openSubscriptionModal] = useSubscriptionModal();
18 const handleUnlockBreachReport = () => {
19 openSubscriptionModal({
20 step: SUBSCRIPTION_STEPS.PLAN_SELECTION,
28 className="breach-upsell-modal absolute inset-x-center top-custom p-4 md:p-6 w-1/2 tooltips flex items-center justify-center overflow-hidden rounded-lg shadow-lifted "
29 style={{ '--top-custom': '4.675rem' }}
32 <div className="text-center flex flex-col justify-center">
33 <div className="mb-4 rounded">
34 <img src={sentinelBoltShield} className="w-full block" alt="" />
36 <p className="color-weak mt-0 mb-4 px-4">
38 .t`To view the full report including personalized recommendations, upgrade to a paid plan.`}
41 onClick={handleUnlockBreachReport}
46 data-testid="explore-other-plan"
47 >{c('Action').t`Unlock Breach Report`}</Button>
54 export default UnlockBreachReportCard;