1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { Tree } from "~/models/tree";
6 import { TreeItemStatus } from '~/components/tree/tree';
7 export type TreePicker = { [key: string]: Tree<any> };
9 export const getTreePicker = <Value = {}>(id: string) => (state: TreePicker): Tree<Value> | undefined => state[id];
11 export const createTreePickerNode = (data: { nodeId: string, value: any }) => ({
15 status: TreeItemStatus.INITIAL