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

22 lines
643 B
JavaScript
Raw Normal View History

2023-01-25 16:42:46 +01:00
import { useIntl } from 'react-intl';
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';
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();
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 />}
</PageHeader>
<ProfileDetails />
</Page>
);
}