import PropTypes from 'prop-types'; import React from 'react'; import { randomIntFromInterval, generateText } from '../utils'; const PlaceholderDisplayName = ({ minLength, maxLength }) => { const length = randomIntFromInterval(maxLength, minLength); const acctLength = randomIntFromInterval(maxLength, minLength); return (

{generateText(length)}

{generateText(acctLength)}

); }; PlaceholderDisplayName.propTypes = { maxLength: PropTypes.number.isRequired, minLength: PropTypes.number.isRequired, }; export default PlaceholderDisplayName;