import React from "react" ; import { PythonStackView } from "../../stepper/python/analysis/components/PythonStackView" ; import { StackView } from "../../stepper/views/c/StackView" ; import { useAppSelector } from "../../hooks" ; export function LayoutStackView ( ) { const currentStepperState = useAppSelector ( state => state . stepper ? state . stepper . currentStepperState : null ) ; const props = { analysis : currentStepperState ? currentStepperState . analysis : null , } ; const zoomLevel = useAppSelector ( state => state . layout . zoomLevel ) ; return ( < div style = { { fontSize : `${ zoomLevel }rem` } } > { currentStepperState && currentStepperState . platform === 'python' ? < PythonStackView analysis = { props . analysis } height = { null } / > : < StackView />} < /div>); } LayoutStackView . computeDimensions = ( width , height ) => { return { taken : { width , height } , minimum : { width : 200 , height : 100 } , } ; } ;