import React, { useState } from 'react'; import UserInfo from './UserInfo'; import Avatar from './Avatar'; /** * Friends feed * @param {{match: import('react-router').match }} match */ export function Friends({ match }) { return ; } /** * Readers feed * @param {{match: import('react-router').match }} match */ export function Readers({ match }) { return ; } /** * UserInfo list component * @param {{user: import('../api').User, prop: string}} props */ function Users(props) { const [user, setUser] = useState({ uid: 0, uname: props.user }); return ( { user[props.prop] && user[props.prop].map(user => ) } ); }