import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { UserType } from './Types';
export function Friends({ visitor, ...rest }) {
return ;
}
export function Readers({ visitor, ...rest }) {
return ;
}
function Users({data, ...rest}) {
return (
{
data.map(user =>
{user.uname}
)
}
);
}
Friends.propTypes = {
visitor: UserType
};
Readers.propTypes = {
visitor: UserType
};
Users.propTypes = {
data: PropTypes.arrayOf(UserType).isRequired
};