import { toFixed } from 'common/math'; import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { AnimatedNumber, Button, LabeledList, NumberInput, Section } from '../components'; export const ThermoMachine = props => { const { act, data } = useBackend(props); return (
toFixed(value, 2)} /> {' K'} toFixed(value, 2)} /> {' kPa'}
act('power')} /> )}> act('target', { target: value, })} />
); };