import React from 'react'; import PropTypes from 'prop-types'; import {gettext} from 'core/utils'; export const State: React.StatelessComponent = ({item}) => { const cssClass = item.contact_state ? 'state-label' : null; return (
{ item.contact_state !== undefined && item.contact_state !== null && ( {gettext(item.contact_state)} ) }
); }; State.propTypes = { item: PropTypes.object, };