21386: fixed not found test Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados.git] / services / workbench2 / src / components / file-tree / file-tree-item.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { DirectoryIcon, DefaultIcon, FileIcon } from "../icon/icon";
6
7 export const getIcon = (type: string) => {
8     switch (type) {
9         case 'directory':
10             return DirectoryIcon;
11         case 'file':
12             return FileIcon;
13         default:
14             return DefaultIcon;
15     }
16 };
17