accounts-frontend/packages/app/pages/profile/ProfilePage.tsx

14 lines
400 B
TypeScript
Raw Normal View History

import React, { ComponentType } from 'react';
import { useReduxSelector } from 'app/functions';
import Profile from 'app/components/profile/Profile';
2019-12-30 13:45:40 +05:30
const ProfileController: ComponentType = () => {
const [user, activeLocale] = useReduxSelector((state) => [state.user, state.i18n.locale]);
return <Profile user={user} activeLocale={activeLocale} />;
};
2020-05-24 04:38:24 +05:30
export default ProfileController;