import Link from 'next/link' import { Image } from 'react-bootstrap' import { abbrNum } from '../lib/format' import CowboyHat from './cowboy-hat' import styles from './item.module.css' import userStyles from './user-header.module.css' export default function UserList ({ users }) { return ( <> {users.map(user => (
@{user.name}
{abbrNum(user.stacked)} stacked \ {abbrNum(user.spent)} spent \ {abbrNum(user.nitems)} posts \ {abbrNum(user.ncomments)} comments {user.referrals > 0 && \ {abbrNum(user.referrals)} referrals}
))} ) } export function UsersSkeleton () { const users = new Array(21).fill(null) return (
{users.map((_, i) => (
))}
) }