aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/usePositionAttributes.js
blob: 825ec36397d44975f0ad3ea220235ad285616131 (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 default (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]);