import { Tree } from "~/models/tree";
import { TreeItemStatus } from "~/components/tree/tree";
+import { RootState } from '~/store/store';
export type TreePicker = { [key: string]: Tree<TreePickerNode> };
collapsed: true,
status: TreeItemStatus.INITIAL
});
+
+export const getTreePicker = (id: string) => (state: TreePicker): Tree<TreePickerNode> | undefined => state[id];
\ No newline at end of file