import React, { PureComponent } from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { Button, ClipboardButton } from '@grafana/ui'; import { Invitee } from 'app/types'; import { revokeInvite } from './state/actions'; const mapDispatchToProps = { revokeInvite, }; const connector = connect(null, mapDispatchToProps); interface OwnProps { invitee: Invitee; } export type Props = OwnProps & ConnectedProps; class InviteeRow extends PureComponent { render() { const { invitee, revokeInvite } = this.props; return ( {invitee.email} {invitee.name} invitee.url}> Copy Invite