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