blob: 49a64f715799ddaa6503c2df9e9d3510d4e7963b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { useMemo } from 'react';
export const usePositionAttributes = (t) => useMemo({
raw: {
name: t('positionRaw'),
type: 'string',
},
index: {
name: t('positionIndex'),
type: 'number',
},
ignition: {
name: t('positionIgnition'),
type: 'boolean',
},
odometer: {
name: t('positionOdometer'),
type: 'number',
dataType: 'distance',
},
}, [t]);
|