import { Row, Col, Card, Select, InputNumber, Button, Switch, Divider, Tooltip, } from 'antd'; import { DeleteOutlined, CopyOutlined, SaveOutlined, CameraOutlined, CloseOutlined, } from '@ant-design/icons'; import { patientSizes } from '../../states/patientSize'; import { WorkstationTypeLabels } from '../../states/workstation'; import { FormattedMessage } from 'react-intl'; import { useSelector, useDispatch } from 'react-redux'; import { RootState } from '../../states/store'; import { setAprConfig, setBodysize, setWorkstation, setIsAECEnabled, setCurrentExposureMode, } from '../../states/exam/aprSlice'; import BodyPositionList from './components/BodyPositionList'; import BodyPositionDetail from './components/BodyPositionDetail'; const ContentAreaLarge = () => { const dispatch = useDispatch(); const aprConfig = useSelector((state: RootState) => state.apr.aprConfig); const bodysize = useSelector((state: RootState) => state.apr.bodysize); const workstation = useSelector((state: RootState) => state.apr.workstation); const isAECEnabled = useSelector( (state: RootState) => state.apr.isAECEnabled ); const currentExposureMode = useSelector( (state: RootState) => state.apr.currentExposureMode ); const handleBodysizeChange = (value: string) => { dispatch(setBodysize(value)); }; const handleWorkstationChange = (value: string) => { dispatch(setWorkstation(value)); }; const handleAECChange = (checked: boolean) => { dispatch(setIsAECEnabled(checked)); }; const handleExposureModeChange = (value: string) => { dispatch(setCurrentExposureMode(value)); }; return (
dispatch(setAprConfig({ ...aprConfig, mA: value ?? 0 })) } /> dispatch(setAprConfig({ ...aprConfig, ms: value ?? 0 })) } /> dispatch(setAprConfig({ ...aprConfig, mAs: value ?? 0 })) } /> dispatch(setAprConfig({ ...aprConfig, kV: value ?? 0 })) } /> dispatch(setAprConfig({ ...aprConfig, AECDensity: value ?? 0 })) } />