import { FC } from 'react' import { UserType } from '@marzneshin/features/users'; import { CircularProgress } from '@nextui-org/progress'; import prettyBytes from 'pretty-bytes'; import { useTranslation } from 'react-i18next'; interface UserUsedTrafficProps { user: UserType } export const UserUsedTraffic: FC = ( { user } ) => { const { t } = useTranslation() return (

{prettyBytes(user.used_traffic)}

{user.data_limit ? prettyBytes(user.data_limit) : t('page.users.unlimited')}

); }