mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-02 19:50:44 +05:30
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import React, { ComponentType } from 'react';
|
|
|
|
import { useReduxSelector } from 'app/functions';
|
|
|
|
import Profile from 'app/components/profile/Profile';
|
|
|
|
const ProfileController: ComponentType = () => {
|
|
const [user, activeLocale] = useReduxSelector((state) => [state.user, state.i18n.locale]);
|
|
|
|
return <Profile user={user} activeLocale={activeLocale} />;
|
|
};
|
|
|
|
export default ProfileController;
|