import PropTypes from 'prop-types' import React from 'react' import { Button, FormSelect, FormSelectOption } from '@patternfly/react-core' import { PlusIcon, TimesIcon } from '@patternfly/react-icons' const RackConstructionComponent = ({ onStart, onStop, inRackConstructionMode, isEditingRoom, prefabs = [] }) => { const [selectedPrefabId, setSelectedPrefabId] = React.useState('') if (inRackConstructionMode) { return ( ) } const onChangePrefab = (value) => { setSelectedPrefabId(value) } return ( <> {prefabs.map((prefab) => ( ))} ) } RackConstructionComponent.propTypes = { onStart: PropTypes.func, onStop: PropTypes.func, inRackConstructionMode: PropTypes.bool, isEditingRoom: PropTypes.bool, prefabs: PropTypes.array, } export default RackConstructionComponent