import React from 'react'; import { Label } from 'types'; import { __ } from '@wordpress/i18n'; import { Tooltip } from '@wordpress/components'; import { Icon, shipping, keyboardReturn } from '@wordpress/icons'; import { LABEL_PURCHASE_STATUS } from 'data/constants'; import { ShipmentTrackingLink } from '../link/link'; interface ShipmentTrackingEventProps { label: Label; } export const ShipmentTrackingEvent = ( { label, }: ShipmentTrackingEventProps ) => { const showIcon = label.status === LABEL_PURCHASE_STATUS.PURCHASED; return (