1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ResourceKind } from "models/resource";
7 export const resourceLabel = (type: string, subtype = '') => {
9 case ResourceKind.COLLECTION:
10 return "Data collection";
11 case ResourceKind.PROJECT:
12 if (subtype === "filter") {
13 return "Filter group";
16 case ResourceKind.PROCESS:
18 case ResourceKind.USER:
20 case ResourceKind.GROUP:
22 case ResourceKind.VIRTUAL_MACHINE:
23 return "Virtual Machine";