Remove payments API routing initialization
[ProtonMail-WebClient.git] / packages / components / containers / addresses / AddressesSection.tsx
blob18b770a3b895aa026939f23b8caa02f767451e8a
1 import { useOrganization } from '@proton/account/organization/hooks';
2 import Loader from '@proton/components/components/loader/Loader';
3 import SettingsSectionWide from '@proton/components/containers/account/SettingsSectionWide';
5 import Addresses from './Addresses';
7 interface Props {
8     isOnlySelf?: boolean;
11 const AddressesSection = ({ isOnlySelf }: Props) => {
12     const [organization, loadingOrganization] = useOrganization();
14     return (
15         <SettingsSectionWide>
16             {!organization || loadingOrganization ? (
17                 <Loader />
18             ) : (
19                 <Addresses isOnlySelf={isOnlySelf} organization={organization} />
20             )}
21         </SettingsSectionWide>
22     );
25 export default AddressesSection;