import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, Icon, Input, Section, Table } from '../components'; import { NtosWindow } from '../layouts'; export const NtosNetChat = (props, context) => { const { act, data } = useBackend(context); 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) => (
); };