import { useBackend } from '../backend'; import { AnimatedNumber, Box, Button, Grid, LabeledList, ProgressBar, Section, Input, Table, Icon, Flex } from '../components'; import { Fragment } from 'inferno'; import { createLogger } from '../logging'; const logger = createLogger('ntos chat'); export const NtosNetChat = props => { const { act, data } = useBackend(props); const { can_admin, adminmode, authed, username, active_channel, is_operator, all_channels = [], clients = [], messages = [], } = data; const in_channel = (active_channel !== null); const authorized = (authed || adminmode); return (
act('PRG_newchannel', { new_channel_name: value, })} /> {all_channels.map(channel => (
); };