2020-07-21 15:30:18 +03:00
|
|
|
import React, { ComponentType } from 'react';
|
|
|
|
import { useSelector } from 'react-redux';
|
2017-05-25 22:11:57 +03:00
|
|
|
|
2020-07-21 15:30:18 +03:00
|
|
|
import { RootState } from 'app/reducers';
|
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 = () => {
|
|
|
|
const [user, activeLocale] = useSelector((state: RootState) => [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;
|