import { Flex, Button, Badge } from 'antd'; import { ToolOutlined, CameraOutlined, TabletOutlined, } from '@ant-design/icons'; import { useSelector } from 'react-redux'; import { RootState } from '@/states/store'; import { GENERATOR_STATUS, GeneratorStatus, } from '@/states/exam/deviceAreaSlice'; import triggerInspection from '../../API/exam/triggerInspection'; const DeviceArea = ({ className }: { className?: string }) => { const generatorStatus = useSelector( (state: RootState) => state.deviceArea.generatorStatus ); const generatorStatus_2 = useSelector( (state: RootState) => state.deviceArea.generatorStatus_2 ); const exposureStatus = useSelector( (state: RootState) => state.deviceArea.exposureStatus ); const tabletStatus = useSelector( (state: RootState) => state.deviceArea.tabletStatus ); // 读取 FPD 状态,判断是否为模拟器模式 const fpd = useSelector((state: RootState) => state.product.fpd); const isSimulator = fpd === 'Simulator'; const btnStyle = { width: '1.5rem', height: '1.5rem' }; const classValue = 'mr-1'; return (