import { useBackend } from '../backend';
import { Box, Button, LabeledList, NoticeBox, Section } from '../components';
import { Window } from '../layouts';
import { LoginInfo } from './common/LoginInfo';
import { LoginScreen } from './common/LoginScreen';
export const Fax = (props, context) => {
const { data } = useBackend(context);
const { authenticated, copyItem } = data;
let variableHeight = 340;
if (copyItem) {
variableHeight = 358;
}
if (!authenticated) {
return (
);
}
return (
);
};
export const FaxContent = (props, context) => {
const { act, data } = useBackend(context);
const { bossName, copyItem, cooldown, destination, adminDepartments } = data;
const staffRequestDepartment = new Set(adminDepartments);
return (
{!!cooldown && (
Transmitter arrays realigning. Please stand by.
)}
{bossName} Quantum Entanglement Network
{(copyItem && (
{copyItem}{' '}
)) || Please insert item to transmit.}
);
};
const RemoveItem = (props, context) => {
const { act, data } = useBackend(context);
const { copyItem } = data;
if (!copyItem) {
return null;
}
return (
);
};
const AutomatedStaffRequest = (props, context) => {
const { act, data } = useBackend(context);
const { adminDepartments, destination, copyItem } = data;
const staffRequestDepartment = new Set(adminDepartments);
let flexiblePadding = '1rem';
if (copyItem) {
flexiblePadding = '1.5rem';
}
if (!copyItem || (copyItem && staffRequestDepartment.has(destination))) {
return (
Or submit an automated staff request.
The automated staff request form automatically populates the company
job board ((sends to discord, but does not ping.)) without requiring
intervention from central command clerks and officers.
It also works without requiring a written request to be composed.
);
} else {
return null;
}
};