/** @format */ /** * External dependencies */ import classnames from 'classnames'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; /** * Use `OrderStatus` to display a badge with human-friendly text describing the current order status. * * @return { object } - */ const OrderStatus = ( { order, className } ) => { const { status } = order; const { orderStatuses } = wcSettings; const classes = classnames( 'woocommerce-order-status', className ); const indicatorClasses = classnames( 'woocommerce-order-status__indicator', { [ 'is-' + status ]: true, } ); const label = orderStatuses[ 'wc-' + status ] || status; return (