1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { PropertiesState, getProperty } from 'store/properties/properties';
6 import { Vocabulary } from 'models/vocabulary';
8 export const VOCABULARY_PROPERTY_NAME = 'vocabulary';
10 export const DEFAULT_VOCABULARY: Vocabulary = {
15 export const getVocabulary = (state: PropertiesState) =>
16 getProperty<Vocabulary>(VOCABULARY_PROPERTY_NAME)(state) || DEFAULT_VOCABULARY;