/** @format */ /** * External dependencies */ import { Component } from '@wordpress/element'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { TextControl } from '@wordpress/components'; class TextControlWithAffixes extends Component { render() { const { noWrap, prefix, suffix, ...rest } = this.props; return (
{ prefix && { prefix } } { suffix && { suffix } }
); } } TextControlWithAffixes.propTypes = { noWrap: PropTypes.bool, prefix: PropTypes.node, suffix: PropTypes.node, }; export default TextControlWithAffixes;