12345678910111213141516171819202122232425 |
- import {IconArrow, IconGlobe, IconGraph, IconMenu, IconNumber} from 'sentry/icons';
- import {IconGraphArea} from 'sentry/icons/iconGraphArea';
- import {IconGraphBar} from 'sentry/icons/iconGraphBar';
- import {DisplayType} from '../types';
- export function getWidgetIcon(displayType: DisplayType) {
- switch (displayType) {
- case DisplayType.TABLE:
- return IconMenu;
- case DisplayType.WORLD_MAP:
- return IconGlobe;
- case DisplayType.BIG_NUMBER:
- return IconNumber;
- case DisplayType.BAR:
- return IconGraphBar;
- case DisplayType.TOP_N:
- return IconArrow;
- case DisplayType.AREA:
- return IconGraphArea;
- case DisplayType.LINE:
- default:
- return IconGraph;
- }
- }
|