projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
21217: Automatically clean double-slash in API URLs.
[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