UNPKG

decentraland-ui

Version:

Decentraland's UI components and styles

25 lines (24 loc) 859 B
import * as React from 'react'; import { Avatar } from '@dcl/schemas/dist/platform/profile/avatar'; import './Profile.css'; declare type Props<T extends React.ElementType> = { address: string; avatar?: Avatar | null; textOnly?: boolean; imageOnly?: boolean; hasPopup?: boolean; inline?: boolean; sliceAddressBy?: number; size?: 'normal' | 'large' | 'huge' | 'massive'; isDecentraland?: boolean; i18n?: { defaultName: string; }; as?: T; }; export declare type ProfileProps<T extends React.ElementType> = Props<T> & Omit<React.ComponentPropsWithRef<T>, keyof Props<T>>; /** * @deprecated Should start using the same component migrated to UI2. */ export declare const Profile: <T extends React.ElementType<any, keyof React.JSX.IntrinsicElements>>(props: ProfileProps<T>) => React.JSX.Element; export {};