asb_cloud_front/src/pages/TelemetryView/ModeDisplay.jsx
2021-08-13 10:31:02 +05:00

22 lines
580 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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