import { IconSize, IconSizeProp } from '../OnyxIcon/types.js'; export type OnyxAvatarProps = IconSizeProp> & { /** * Full user name. Will determine the displayed initials. * * @example "John Doe" */ fullName: DisplayName; /** * Image URL to show. If unset or an error occurs while loading, a fallback will be displayed * with the initials. */ src?: string; /** * Initials to use. If unset, they will be inferred automatically from the `fullName` property. */ initials?: string; }; export type DisplayName = string | { name: string; /** * Locale of the given name. Will be used for formatting. */ locale: string; };