@atlaskit/profilecard
Version:
A React component to display a card with user information.
23 lines (22 loc) • 1.35 kB
TypeScript
import React from 'react';
import { type FireEventType } from '@atlaskit/teams-app-internal-analytics';
import { type AnalyticsProps, type ProfileCardAction, type ProfileCardClientData, type ProfileCardResourcedProps, type ProfileCardResourcedState, type TeamCentralReportingLinesData } from '../../types';
declare class ProfileCardResourced extends React.PureComponent<ProfileCardResourcedProps & AnalyticsProps, ProfileCardResourcedState> {
static defaultProps: Partial<ProfileCardResourcedProps>;
_isMounted: boolean;
state: ProfileCardResourcedState;
fireAnalytics: FireEventType;
componentDidMount(): void;
componentDidUpdate(prevProps: ProfileCardResourcedProps): void;
componentWillUnmount(): void;
clientFetchProfile: () => void;
handleClientSuccess(profileData: ProfileCardClientData, reportingLinesData: TeamCentralReportingLinesData, shouldShowGiveKudos: boolean, teamCentralBaseUrl?: string): void;
handleClientError(err: any): void;
filterActions: () => ProfileCardAction[];
openKudosDrawer: () => void;
closeKudosDrawer: () => void;
render(): React.ReactNode;
}
export declare const ProfileCardResourcedInternal: typeof ProfileCardResourced;
declare const ProfileCardResourcedWithAnalytics: React.FC<ProfileCardResourcedProps>;
export default ProfileCardResourcedWithAnalytics;