import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; export const PlantAnalyzer = (props, context) => { const { data } = useBackend(context); let calculatedHeight = 250; if (data.seed) { calculatedHeight += 18 * data.seed.trait_info.length; } if (data.reagents && data.reagents.length) { calculatedHeight += 55; calculatedHeight += 20 * data.reagents.length; } // Resizable just in case the calculatedHeight fails return ( ); }; const PlantAnalyzerContent = (props, context) => { const { act, data } = useBackend(context); const { no_seed, seed, reagents } = data; if (no_seed) { return
You should go scan a plant! There is no data currently loaded.
; } return (
); };