14 lines
400 B
TypeScript
Raw Normal View History

import React, { ComponentType } from 'react';
import { useReduxSelector } from 'app/functions';
import Profile from 'app/components/profile/Profile';
2019-12-30 10:15:40 +02:00
const ProfileController: ComponentType = () => {
const [user, activeLocale] = useReduxSelector((state) => [state.user, state.i18n.locale]);
return <Profile user={user} activeLocale={activeLocale} />;
};
2020-05-24 02:08:24 +03:00
export default ProfileController;