Renders the community feed: who is online, the week's figures, and the
latest things the site's members did in public, each a line with links to
who and what it tells of. The GeoCities style's Marquee scrolls it, and
any style may show it: it is a plain list, which the style lays out.
Renders the feed as a <ul>: a line for who is online, one for the week's
figures, which links to /community, one for its most upvoted dump, then
one per event, newest first, ending on how long ago it was. A line with
nothing to say is left out. The times are computed at render.
Passed to CommunityFeed by whatever shows the feed.
-
feed: CommunityFeedData
From
useCommunityFeed. -
online: OnlineUser[]
From
useWSPresence: the feed opens on them. -
tabIndex: number
Given to every link.
-1takes them out of the tab order, for a second copy of the list such as the one the marquee's loop needs.
Usage
import * as mod from "src/components/social/CommunityFeed.tsx";