mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-12 16:29:01 +05:30
15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
import React, { ComponentType } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import { RootState } from 'app/reducers';
|
|
|
|
import Profile from 'app/components/profile/Profile';
|
|
|
|
const ProfileController: ComponentType = () => {
|
|
const [user, activeLocale] = useSelector((state: RootState) => [state.user, state.i18n.locale]);
|
|
|
|
return <Profile user={user} activeLocale={activeLocale} />;
|
|
};
|
|
|
|
export default ProfileController;
|