import * as React from 'react'; interface IPlaceholderAvatar { size: number, } /** Fake avatar to display while data is loading. */ const PlaceholderAvatar: React.FC = ({ size }) => { const style = React.useMemo(() => { if (!size) { return {}; } return { width: `${size}px`, height: `${size}px`, }; }, [size]); return (
); }; export default PlaceholderAvatar;