umami/components/pages/settings/profile/ProfileSettings.js

22 lines
643 B
JavaScript
Raw Normal View History

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