// PrinterSelect.js import PropTypes from 'prop-types' import { Progress, Flex, Space } from 'antd' import StateTag from './StateTag' const StateDisplay = ({ state, showProgress = true, showState = true }) => { const currentState = state || { type: 'unknown', progress: 0 } return ( {showState && ( )} {showProgress && currentState?.progress && currentState?.progress > 0 ? ( ) : null} ) } StateDisplay.propTypes = { state: PropTypes.object, showProgress: PropTypes.bool, showState: PropTypes.bool } export default StateDisplay