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'; import { ComplexModal, modalOpen, modalRegisterBodyOverride } from './common/ComplexModal'; const transferAmounts = [1, 5, 10, 30, 60]; const bottleStyles = ['bottle.png', 'small_bottle.png', 'wide_bottle.png', 'round_bottle.png', 'reagent_bottle.png']; const analyzeModalBodyOverride = (modal, context) => { const { act, data } = useBackend(context); const result = modal.args.analysis; return (
{result.name} {(result.desc || '').length > 0 ? result.desc : 'N/A'} {result.blood_type && ( {result.blood_type} {result.blood_dna} )} {!data.condi && (
); }; export const ChemMaster = (props, context) => { const { data } = useBackend(context); const { condi, beaker, beaker_reagents = [], buffer_reagents = [], mode } = data; return ( 0} /> 0} /> {/* CHOMPEdit - Enable customizing pill bottle type */} ); }; const ChemMasterBeaker = (props, context) => { const { act, data } = useBackend(context); const { beaker, beakerReagents, bufferNonEmpty } = props; let headerButton = bufferNonEmpty ? ( act('eject')} /> ) : ( ); }; const ChemMasterProductionCondiment = (props, context) => { const { act } = useBackend(context); return (