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