Create common state for resources
[arvados-workbench2.git] / src / store / resources / resources-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { unionize, ofType, UnionOf } from '~/common/unionize';
6 import { Resource } from '~/models/resource';
7
8 export const resourcesActions = unionize({
9     SET_RESOURCES: ofType<Resource[]>(),
10     DELETE_RESOURCES: ofType<string[]>()
11 });
12
13 export type ResourcesAction = UnionOf<typeof resourcesActions>;