aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useGeofenceAttributes.js
blob: a5cd068b88987ee90b1a945377ae7c7c73527b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { useMemo } from 'react';

export default (t) => useMemo(() => ({
  color: {
    name: t('attributeColor'),
    type: 'string',
  },
  speedLimit: {
    name: t('attributeSpeedLimit'),
    type: 'number',
    subtype: 'speed',
  },
  polylineDistance: {
    name: t('attributePolylineDistance'),
    type: 'number',
    subtype: 'distance',
  },
}), [t]);