Merge branch '13798-refactor'
[arvados-workbench2.git] / src / common / labels.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { ResourceKind } from "../models/resource";
6
7 export const resourceLabel = (type: string) => {
8     switch (type) {
9         case ResourceKind.Collection:
10             return "Data collection";
11         case ResourceKind.Project:
12             return "Project";
13         case ResourceKind.Process:
14             return "Process";
15         default:
16             return "Unknown";
17     }
18 };