import { useState } from 'react' import { useParams } from 'react-router-dom' import UserInfo from './UserInfo' import Avatar from './Avatar' import { Helmet } from 'react-helmet' /** * Friends feed */ export function Friends() { const params = useParams() return ( <> {params.user} subscriptions > ) } /** * Readers feed */ export function Readers() { const params = useParams() return ( <> {params.user} readers > ) } /** * 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 => ) } ) }