2020-08-09 08:48:43 +02:00
|
|
|
import React from 'react';
|
|
|
|
import Page from 'components/layout/Page';
|
|
|
|
import MenuLayout from 'components/layout/MenuLayout';
|
|
|
|
import WebsiteSettings from './WebsiteSettings';
|
|
|
|
import AccountSettings from './AccountSettings';
|
|
|
|
import ProfileSettings from './ProfileSettings';
|
2020-08-07 08:02:24 +02:00
|
|
|
|
2020-08-09 08:48:43 +02:00
|
|
|
const menuOptions = ['Websites', 'Accounts', 'Profile'];
|
2020-08-07 08:02:24 +02:00
|
|
|
|
2020-08-09 08:48:43 +02:00
|
|
|
export default function Settings() {
|
2020-08-05 07:45:05 +02:00
|
|
|
return (
|
2020-08-06 04:04:02 +02:00
|
|
|
<Page>
|
2020-08-09 08:48:43 +02:00
|
|
|
<MenuLayout menu={menuOptions} selectedOption="Websites">
|
|
|
|
{option => {
|
|
|
|
if (option === 'Websites') {
|
|
|
|
return <WebsiteSettings />;
|
|
|
|
} else if (option === 'Accounts') {
|
|
|
|
return <AccountSettings />;
|
|
|
|
} else if (option === 'Profile') {
|
|
|
|
return <ProfileSettings />;
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
</MenuLayout>
|
2020-08-06 04:04:02 +02:00
|
|
|
</Page>
|
2020-08-05 07:45:05 +02:00
|
|
|
);
|
|
|
|
}
|