import { multiline } from 'common/string';
import { useBackend } from '../backend';
import { Box, Button, Grid, Section, Table, Tooltip } from '../components';
import { Window } from '../layouts';
export const ComputerFabricator = (props, context) => {
const { act, data } = useBackend(context);
return (
Your perfect device, only three steps away...
{data.state !== 0 && (
);
};
// This had a pretty gross backend so this was unfortunately one of the
// best ways of doing it.
const CfStep1 = (props, context) => {
const { act, data } = useBackend(context);
return (
Choose your Device
);
};
const CfStep2 = (props, context) => {
const { act, data } = useBackend(context);
return (
{data.totalprice}₮
}>
Battery:
Hard Drive:
Network Card:
Nano Printer:
Secondary Card Reader:
{data.devtype !== 2 && (
Processor Unit:
)}
Tesla Relay:
);
};
const CfStep3 = (props, context) => {
const { act, data } = useBackend(context);
return (
Your device is ready for fabrication...
Please swipe your ID now to authorize payment of:
{data.totalprice}₮
);
};
const CfStep4 = (props, context) => {
return (
Thank you for your purchase!
If you experience any difficulties with your new device, please contact
your local network administrator.
);
};