import PropTypes from 'prop-types'; import * as React from 'react'; const PlaceholderAvatar = ({ size }) => { const style = React.useMemo(() => { if (!size) { return {}; } return { width: `${size}px`, height: `${size}px`, }; }, [size]); return (
); }; PlaceholderAvatar.propTypes = { size: PropTypes.number.isRequired, }; export default PlaceholderAvatar;