import type { BadgeProps } from '@mui/material/Badge'; import type { AvatarProps } from '../avatar'; import type { Roles } from '../user-controls'; interface UserInfoProps { /** * Props to be supplied directly into the Avatar component. */ avatarProps?: AvatarProps; /** * Name to be displayed. */ name?: string; /** * User role to be displayed. */ userRole?: Roles | string; /** * User email to be displayed. */ userEmail?: string; /** * Props to be supplied directly into the Badge component (set `color` prop to render status with badge dot). */ statusBadgeProps?: BadgeProps; /** * Coutry flag icon to be placed before the status text. */ statusIcon?: AvatarProps; /** * User status text (usually the date of the last login or "Online"). */ statusText?: string; } export type { UserInfoProps };