import React from 'react';
import { StatusBullet } from '@rocket.chat/fuselage';
import { useTranslation } from '../contexts/TranslationContext';
import { usePresence } from '../hooks/usePresence';
export const UserStatus = React.memo(({ small, status, ...props }) => {
const size = small ? 'small' : 'large';
const t = useTranslation();
switch (status) {
case 'online':
return ;
case 'busy':
return ;
case 'away':
return ;
case 'offline':
return ;
default:
return ;
}
});
export const Busy = (props) => ;
export const Away = (props) => ;
export const Online = (props) => ;
export const Offline = (props) => ;
export const Loading = (props) => ;
export const colors = {
busy: 'danger-500',
away: 'warning-600',
online: 'success-500',
offline: 'neutral-600',
};
export const ReactiveUserStatus = React.memo(({ uid, presence, ...props }) => {
const status = usePresence(uid, presence);
return ;
});