import React from 'react';

import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
import { TeamsLink } from '@atlaskit/teams-app-internal-navigation/teams-link';

const _default_1: any = md`
  ${(<AtlassianInternalWarning />)}

  A React component that wraps a trigger, such that when interacted a user profile card pops up.

  It's recommended to talk to us, in particular our team's designers, on Slack at
  #help-people-and-teams-xpc before integrating this in your product. This is for the purpose of
  design's understanding, as it is important that design understands the consumer / your use
  case(s), and we are happy to chat further if the current design doesn't meet your needs.

  ## Usage

  ### Using the ProfileCardTrigger

  ${code`
import ProfileCardTrigger from '@atlaskit/profilecard/user';
import ProfileClient from '@atlaskit/profilecard/client';

const profileClient = new ProfileClient({
  url: 'https://directory-graphql-service/endpoint' // GraphQL service endpoint
});

<TeamProfileCardTrigger
  orgId="SOME-ORG-ID"
  teamId="SOME-TEAM-ID"
  resourceClient={profileClient}
>
  <Avatar ... />
</TeamProfileCardTrigger>
  `}

  ${(
		<Example
			packageName="@atlaskit/profilecard"
			Component={require('../examples/09-team-profilecard-trigger').default}
			title="Profilecard"
			source={require('!!raw-loader!../examples/09-team-profilecard-trigger')}
		/>
	)}

  Here are some relevant examples for better understanding the \`trigger\` and \`triggerLinkType\`
  props:

  ${(
		<ul>
			<li>
				<TeamsLink
					href="/examples/people-and-teams/profilecard/trigger-link-types"
					intent="reference"
				>
					Trigger link types
				</TeamsLink>
			</li>
			<li>
				<TeamsLink
					href="/examples/people-and-teams/profilecard/team-profilecard-trigger"
					intent="reference"
				>
					Team profilecard trigger
				</TeamsLink>
			</li>
		</ul>
	)}

  ${(
		<Props
			heading="TeamProfileCardTrigger Props..."
			props={require('!!extract-react-types-loader!../src/components/Team/TeamProfileCardTrigger')}
		/>
	)}

`;
export default _default_1;
