2021-08-13 10:31:02 +05:00
|
|
|
|
import { Display } from '../../components/Display'
|
|
|
|
|
|
2021-04-16 15:50:01 +05:00
|
|
|
|
const modeNames = {
|
|
|
|
|
0: "Ручной",
|
|
|
|
|
1: "Бурение в роторе",
|
|
|
|
|
2: "Проработка",
|
|
|
|
|
3: "Бурение в слайде",
|
|
|
|
|
4: "Спуск СПО",
|
|
|
|
|
5: "Подъем СПО",
|
|
|
|
|
6: "Подъем с проработкой",
|
|
|
|
|
|
|
|
|
|
10: "БЛОКИРОВКА",
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-12 17:54:04 +05:00
|
|
|
|
export const ModeDisplay = ({data})=>{
|
2021-08-13 10:31:02 +05:00
|
|
|
|
const dataLast = data[data.length - 1]
|
2021-04-16 15:50:01 +05:00
|
|
|
|
|
2021-08-13 10:31:02 +05:00
|
|
|
|
return <Display className='border_small display_flex_container user_card'
|
|
|
|
|
label='Режим:'
|
|
|
|
|
value={dataLast?.mode}
|
|
|
|
|
enumeration={modeNames}/>
|
2021-04-16 15:50:01 +05:00
|
|
|
|
}
|