import React from 'react'; import type { Application } from '../application.model'; import { PagerDutyWriter } from '../../pagerDuty'; import { Tooltip } from '../../presentation'; export interface IPagerDutyButtonProps { app: Application; } export class PagerDutyButton extends React.Component { private pageApplicationOwner = (): void => { PagerDutyWriter.pageApplicationOwnerModal(this.props.app); }; public render() { if (!this.props.app.attributes.pdApiKey) { return null; } return ( ); } }