import { useChannels, useForceUpdate, useServers, useUser } from "../../context/revoltjs/hooks"; import ChannelIcon from "../../components/common/ChannelIcon"; import ServerIcon from "../../components/common/ServerIcon"; import UserIcon from "../../components/common/UserIcon"; import PaintCounter from "../../lib/PaintCounter"; export function Nested() { const ctx = useForceUpdate(); let user = useUser('01EX2NCWQ0CHS3QJF0FEQS1GR4', ctx)!; let user2 = useUser('01EX40TVKYNV114H8Q8VWEGBWQ', ctx)!; let user3 = useUser('01F5GV44HTXP3MTCD2VPV42DPE', ctx)!; let channels = useChannels(undefined, ctx); let servers = useServers(undefined, ctx); return ( <>

Nested component

@{ user.username } is { user.online ? 'online' : 'offline' }

UserIcon Tests

Channels

{ channels.map(channel => channel && channel.channel_type !== 'SavedMessages' && channel.channel_type !== 'DirectMessage' && ) }

Servers

{ servers.map(server => server && ) }

{ 'test long paragraph'.repeat(2000) }

) } export default function Home() { return (

HOME

); }