components.controls.withRightPlaceholder.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import PropTypes from 'prop-types'
const withRightPlaceholder = WrappedComponent => (props) => {
// eslint-disable-next-line react/prop-types
const { measure } = props
return (
{measure ? (
{measure}
) : null}
)
}
withRightPlaceholder.propTypes = {
measure: PropTypes.string,
}
withRightPlaceholder.defaultProps = {
measure: '',
}
export default withRightPlaceholder