2023-01-25 16:42:46 +01:00
|
|
|
import { useIntl } from 'react-intl';
|
2022-12-27 01:57:59 +01:00
|
|
|
import Page from 'components/layout/Page';
|
|
|
|
import PageHeader from 'components/layout/PageHeader';
|
2023-01-21 02:12:53 +01:00
|
|
|
import ProfileDetails from './ProfileDetails';
|
2023-01-24 00:32:35 +01:00
|
|
|
import PasswordChangeButton from './PasswordChangeButton';
|
2023-01-25 16:42:46 +01:00
|
|
|
import { labels } from 'components/messages';
|
2023-02-28 05:03:04 +01:00
|
|
|
import useConfig from 'hooks/useConfig';
|
2022-12-28 21:37:09 +01:00
|
|
|
|
2023-01-21 02:12:53 +01:00
|
|
|
export default function ProfileSettings() {
|
|
|
|
const { formatMessage } = useIntl();
|
2023-02-28 05:03:04 +01:00
|
|
|
const { cloudMode } = useConfig();
|
2022-12-27 01:57:59 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Page>
|
2023-02-02 12:30:09 +01:00
|
|
|
<PageHeader title={formatMessage(labels.profile)}>
|
2023-02-28 05:03:04 +01:00
|
|
|
{!cloudMode && <PasswordChangeButton />}
|
2022-12-27 01:57:59 +01:00
|
|
|
</PageHeader>
|
2023-01-11 02:18:59 +01:00
|
|
|
<ProfileDetails />
|
2022-12-27 01:57:59 +01:00
|
|
|
</Page>
|
|
|
|
);
|
|
|
|
}
|