import { Fragment } from 'inferno';
import { useBackend } from "../backend";
import { Box, Button, Flex, Icon, LabeledList, Section } from "../components";
import { Window } from "../layouts";
import { BeakerContents } from './common/BeakerContents';
export const ChemSynthesizer = (props, context) => {
return (
);
};
const ChemSynthesizerQueueRecipes = (props, context) => {
const { act, data } = useBackend(context);
const {
busy,
use_catalyst,
queue = [],
production_mode,
} = data;
return (
);
};
const ChemSynthesizerQueueList = (props, context) => {
const { act, data } = useBackend(context);
const {
queue = [],
busy,
} = data;
return = (
{queue.length && queue.map(item => {
if ((item.index === 1) && !!busy) {
return (
{
Delete
}
);
}
return (
act("rem_queue", {
q_index: item.index
})}>
Delete
);
}) || (
Queue Empty.
)}
);
};
const ChemSynthesizerRecipeList = (props, context) => {
const { act, data } = useBackend(context);
const {
recipes = [],
busy,
} = data;
return = (
{recipes.length && recipes.map(item => {
act("rem_queue", {
q_index: item.index
})}>
Delete
}) || (
No Recipes.
)}
);
};