import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section, Table } from '../components'; import { NtosWindow } from '../layouts'; import { NtosEmailClientViewMessage } from './NtosEmailClient'; export const NtosEmailAdministration = (props, context) => { const { act, data } = useBackend(context); const { error, cur_title, current_account } = data; let body = ; if (error) { body = ; } else if (cur_title) { body = ; } else if (current_account) { body = ; } return ( {body} ); }; const MainMenu = (props, context) => { const { act, data } = useBackend(context); const { accounts } = data; return (
SECURE SYSTEM - Have your identification ready Select account to administrate {accounts.map((account) => ( ))}
); }; const EmailError = (props, context) => { const { act, data } = useBackend(context); const { error } = data; return (
act('back')}> Back }> {error}
); }; const ViewEmail = (props, context) => { const { act, data } = useBackend(context); return (
); }; const ViewAccount = (props, context) => { const { act, data } = useBackend(context); const { error, msg_title, msg_body, msg_timestamp, msg_source, current_account, cur_suspended, messages, accounts } = data; return (
act('back')}> Back }>
{(messages.length && ( Source Title Received at Actions {messages.map((message) => ( {message.source} {message.title} {message.timestamp} ))}
)) || No messages found in selected account.}
); };