import React from 'react';
import { c } from 'ttag';

import { AutoReplySection, SettingsPropsShared } from 'react-components';

import PrivateMainSettingsAreaWithPermissions from '../../components/PrivateMainSettingsAreaWithPermissions';

export const getAutoReply = () => {
    return {
        text: c('Title').t`Auto reply`,
        to: '/mail/auto-reply',
        icon: 'mailbox',
        subsections: [
            {
                text: c('Title').t`Auto reply`,
                id: 'auto-reply',
            },
        ],
    };
};

const MailAutoReplySettings = ({ location }: SettingsPropsShared) => {
    return (
        <PrivateMainSettingsAreaWithPermissions location={location} config={getAutoReply()}>
            <AutoReplySection />
        </PrivateMainSettingsAreaWithPermissions>
    );
};

export default MailAutoReplySettings;

import React from 'react';
import { c } from 'ttag';

import { AutoReplySection, SettingsPropsShared } from 'react-components';

import PrivateMainSettingsAreaWithPermissions from '../../components/PrivateMainSettingsAreaWithPermissions';

export const getAutoReply = () => {
    return {
        text: c('Title').t`Auto reply`,
        to: '/mail/auto-reply',
        icon: 'mailbox',
        subsections: [{ id: 'auto-reply' }],
    };
};

const MailAutoReplySettings = ({ location }: SettingsPropsShared) => {
    return (
        <PrivateMainSettingsAreaWithPermissions location={location} config={getAutoReply()}>
            <AutoReplySection />
        </PrivateMainSettingsAreaWithPermissions>
    );
};

export default MailAutoReplySettings;

Remove settings section title from Auto-Reply
Remove settings section title from Auto-Reply
