import React from 'react'; import PropTypes from 'prop-types'; import {get} from 'lodash'; import {gettext} from '../../../utils'; export const FeatureLabel = ({item, tooltipFlowDirection}) => { if (get(item, 'featured') === true) { return ( ); } return null; }; FeatureLabel.propTypes = { item: PropTypes.object, tooltipFlowDirection: PropTypes.string, }; FeatureLabel.defaultProps = {tooltipFlowDirection: 'left'};