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