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