2020-07-21 18:00:18 +05:30
|
|
|
import React, { ComponentType } from 'react';
|
2017-05-26 00:41:57 +05:30
|
|
|
|
2020-07-22 15:31:12 +05:30
|
|
|
import { useReduxSelector } from 'app/functions';
|
2016-04-17 15:05:04 +05:30
|
|
|
|
2020-07-21 18:00:18 +05:30
|
|
|
import Profile from 'app/components/profile/Profile';
|
2019-12-30 13:45:40 +05:30
|
|
|
|
2020-07-21 18:00:18 +05:30
|
|
|
const ProfileController: ComponentType = () => {
|
2020-07-22 15:31:12 +05:30
|
|
|
const [user, activeLocale] = useReduxSelector((state) => [state.user, state.i18n.locale]);
|
2019-01-28 00:42:58 +05:30
|
|
|
|
2020-07-21 18:00:18 +05:30
|
|
|
return <Profile user={user} activeLocale={activeLocale} />;
|
|
|
|
};
|
2020-05-24 04:38:24 +05:30
|
|
|
|
2020-07-21 18:00:18 +05:30
|
|
|
export default ProfileController;
|