import { decodeHtmlEntities } from 'common/string'; import { Fragment } from 'inferno'; import { useBackend, useSharedState } from '../backend'; import { Box, Button, LabeledList, Input, Section } from '../components'; import { Window } from '../layouts'; import { TemporaryNotice } from './common/TemporaryNotice'; const NEWSCASTER_SCREEN_MAIN = 'Main Menu'; const NEWSCASTER_SCREEN_NEWCHANNEL = 'New Channel'; const NEWSCASTER_SCREEN_VIEWLIST = 'View List'; const NEWSCASTER_SCREEN_NEWSTORY = 'New Story'; const NEWSCASTER_SCREEN_PRINT = 'Print'; const NEWSCASTER_SCREEN_NEWWANTED = 'New Wanted'; const NEWSCASTER_SCREEN_VIEWWANTED = 'View Wanted'; const NEWSCASTER_SCREEN_SELECTEDCHANNEL = 'View Selected Channel'; export const Newscaster = (props, context) => { const { act, data } = useBackend(context); const { screen, user } = data; return ( ); }; const NewscasterContent = (props, context) => { const { act, data } = useBackend(context); const { user } = data; const [screen, setScreen] = useSharedState(context, 'screen', NEWSCASTER_SCREEN_MAIN); let Template = screenToTemplate[screen]; return (