import { c } from 'ttag' ; import { AddressesSection , IdentitySection , SettingsPropsShared } from '@proton/components' ; import PrivateMainSettingsAreaWithPermissions from '../../components/PrivateMainSettingsAreaWithPermissions' ; export const getAddressesPage = ( ) => { return { text : c ( 'Title' ) . t `Identity and addresses` , to : '/mail/identity-addresses' , icon : 'addresses' , subsections : [ { text : c ( 'Title' ) . t `Display name and signature` , id : 'name-signature' , } , { text : c ( 'Title' ) . t `My addresses` , id : 'addresses' , } , ] , } ; } ; const MailIdentityAndAddressSettings = ( { location } ) => { return ( < PrivateMainSettingsAreaWithPermissions location = { location } config = { getAddressesPage ( ) } > < IdentitySection /> < AddressesSection isOnlySelf / > < /PrivateMainSettingsAreaWithPermissions>); } ; export default MailIdentityAndAddressSettings ;