1 import { c } from 'ttag';
3 import { Button } from '@proton/atoms';
4 import useModalState from '@proton/components/components/modalTwo/useModalState';
5 import SettingsParagraph from '@proton/components/containers/account/SettingsParagraph';
6 import SettingsSection from '@proton/components/containers/account/SettingsSection';
7 import { useSubscription } from '@proton/components/hooks';
9 import CancelB2bSubscriptionModal from './CancelB2bSubscriptionModal';
11 const CancelB2bSubscriptionSection = () => {
12 const [subscription, loadingSubscription] = useSubscription();
14 const [modalProps, setModalOpen, render] = useModalState();
22 {render && <CancelB2bSubscriptionModal {...modalProps} />}
25 {c('Info').t`To cancel your subscription, please reach out to us.`}
27 <Button onClick={() => setModalOpen(true)} color="norm" shape="outline" disabled={loadingSubscription}>
28 {c('Action').t`Contact us`}
35 export default CancelB2bSubscriptionSection;