projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '18368-notification-banner' into 19836-new-tooltip-impl
[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