21280: removed excess whitespace from subprocess panel Arvados-DCO-1.1-Signed-off...
[arvados.git] / 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