import React, { useState } 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';
import { useSelector } from 'react-redux';
import { FormattedMessage } from 'react-intl';
const WEBSITES = 1;
const ACCOUNTS = 2;
const PROFILE = 3;
export default function Settings() {
const user = useSelector(state => state.user);
const [option, setOption] = useState(WEBSITES);
const menuOptions = [
{
label: ,
value: WEBSITES,
},
{
label: ,
value: ACCOUNTS,
hidden: !user.is_admin,
},
{ label: , value: PROFILE },
];
return (
{option === WEBSITES && }
{option === ACCOUNTS && }
{option === PROFILE && }
);
}