import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { UserType } from './Types'; export default function Avatar(props) { return (
{`${props.user.uname}`}
); } Avatar.propTypes = { user: UserType, link: PropTypes.string }