import React from 'react'; import Grid from '@material-ui/core/Grid'; import Divider from '@material-ui/core/Divider'; import Typography from '@material-ui/core/Typography'; import { connect } from 'react-redux'; import SingleConnection from './SingleConnection'; import { User } from '@xr3ngine/common/src/interfaces/User'; // @ts-ignore import styles from './ProfileConnections.module.scss'; import { selectAuthState } from '../../reducers/auth/selector'; import { useTranslation } from 'react-i18next'; interface Props { auth: any; classes: any; } const mapStateToProps = (state: any): any => { return { auth: selectAuthState(state) }; }; const mapDispatchToProps = (): any => ({}); const ProfileConnections = (props: Props): any => { const { classes } = props; const { t } = useTranslation(); const user = props.auth.get('user') as User; if (!user) { // window.location.href = '/' return
; } return (
{t('user:profile.connections.title')}
); }; const ProfileConnectionsWrapper = (props: any): any => ; export default connect( mapStateToProps, mapDispatchToProps )(ProfileConnectionsWrapper);