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