aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useDeviceAttributes.js
blob: 34ddb64c0a71d9a9bbc7770581793d0a40ae1005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { useMemo } from 'react';

export default (t) => useMemo(() => ({
  devicePassword: {
    name: t('attributeDevicePassword'),
    type: 'string',
  },
  'processing.copyAttributes': {
    name: t('attributeProcessingCopyAttributes'),
    type: 'string',
  },
  'decoder.timezone': {
    name: t('sharedTimezone'),
    type: 'string',
  },
  deviceInactivityStart: {
    name: t('attributeDeviceInactivityStart'),
    type: 'number',
  },
  deviceInactivityPeriod: {
    name: t('attributeDeviceInactivityPeriod'),
    type: 'number',
  },
}), [t]);