import React from 'react'; import { useSelector } from 'react-redux'; import { IApplicationState, TUserStatus } from '../../definitions'; import Status from './Status'; import { IStatus } from './definition'; const StatusContainer = ({ id, style, size = 32, ...props }: Omit): React.ReactElement => { const status = useSelector((state: IApplicationState) => state.meteor.connected ? state.activeUsers[id] && state.activeUsers[id].status : 'loading' ) as TUserStatus; return ; }; export default StatusContainer;