import React from 'react'; import { randomIntFromInterval, generateText } from '../utils'; interface IPlaceholderDisplayName { maxLength: number, minLength: number, } /** Fake display name to show when data is loading. */ const PlaceholderDisplayName: React.FC = ({ minLength, maxLength }) => { const length = randomIntFromInterval(maxLength, minLength); const acctLength = randomIntFromInterval(maxLength, minLength); return (

{generateText(length)}

{generateText(acctLength)}

); }; export default PlaceholderDisplayName;