2020-03-10 20:11:12 +01:00
|
|
|
import React from 'react';
|
|
|
|
|
// Icons
|
2020-04-07 21:47:12 +02:00
|
|
|
|
2020-03-13 15:37:17 +01:00
|
|
|
import arrowDown from './../../assets/icons/arrow-down.svg';
|
2020-09-15 03:18:46 +02:00
|
|
|
import arrowLeft from './../../assets/icons/arrow-left.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import arrowLeftSmall from './../../assets/icons/arrow-left-small.svg';
|
|
|
|
|
import arrowRightSmall from './../../assets/icons/arrow-right-small.svg';
|
2020-03-19 23:58:13 +01:00
|
|
|
import calendar from './../../assets/icons/calendar.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import cancel from './../../assets/icons/cancel.svg';
|
2020-07-22 20:25:51 +02:00
|
|
|
import clipboard from './../../assets/icons/clipboard.svg';
|
2020-06-26 17:34:43 +02:00
|
|
|
import close from './../../assets/icons/close.svg';
|
2020-04-13 12:59:58 +02:00
|
|
|
import dottedCircle from './../../assets/icons/dotted-circle.svg';
|
|
|
|
|
import circledCheckmark from './../../assets/icons/circled-checkmark.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import chevronDown from './../../assets/icons/chevron-down.svg';
|
2020-04-07 03:18:52 +02:00
|
|
|
import chevronLeft from './../../assets/icons/chevron-left.svg';
|
2023-03-22 23:04:44 +01:00
|
|
|
import chevronMenu from './../../assets/icons/chevron-menu.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import chevronNext from './../../assets/icons/chevron-next.svg';
|
|
|
|
|
import chevronPrev from './../../assets/icons/chevron-prev.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import chevronRight from './../../assets/icons/chevron-right.svg';
|
2020-04-10 18:33:14 +02:00
|
|
|
import eyeVisible from './../../assets/icons/eye-visible.svg';
|
|
|
|
|
import eyeHidden from './../../assets/icons/eye-hidden.svg';
|
2020-09-15 03:18:46 +02:00
|
|
|
import exclamation from './../../assets/icons/exclamation.svg';
|
2020-07-10 21:49:53 +02:00
|
|
|
import externalLink from './../../assets/icons/external-link.svg';
|
2020-04-08 18:00:07 +02:00
|
|
|
import groupLayers from './../../assets/icons/group-layers.svg';
|
2020-04-10 21:47:08 +02:00
|
|
|
import info from './../../assets/icons/info.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import infoAction from './../../assets/icons/info-action.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import infoLink from './../../assets/icons/info-link.svg';
|
|
|
|
|
import launchArrow from './../../assets/icons/launch-arrow.svg';
|
|
|
|
|
import launchInfo from './../../assets/icons/launch-info.svg';
|
2020-06-26 17:34:43 +02:00
|
|
|
import link from './../../assets/icons/link.svg';
|
2020-04-07 21:47:12 +02:00
|
|
|
import listBullets from './../../assets/icons/list-bullets.svg';
|
2020-04-13 18:48:45 +02:00
|
|
|
import lock from './../../assets/icons/lock.svg';
|
2020-03-11 00:34:09 +01:00
|
|
|
import logoOhifSmall from './../../assets/icons/logo-ohif-small.svg';
|
2020-03-13 03:27:48 +01:00
|
|
|
import magnifier from './../../assets/icons/magnifier.svg';
|
2020-03-11 00:34:09 +01:00
|
|
|
import notificationwarningDiamond from './../../assets/icons/notificationwarning-diamond.svg';
|
2020-04-10 01:31:21 +02:00
|
|
|
import pencil from './../../assets/icons/pencil.svg';
|
2022-10-07 04:40:16 +02:00
|
|
|
import powerOff from './../../assets/icons/power-off.svg';
|
2020-04-13 18:48:45 +02:00
|
|
|
import profile from './../../assets/icons/profile.svg';
|
2020-04-08 18:00:07 +02:00
|
|
|
import pushLeft from './../../assets/icons/push-left.svg';
|
|
|
|
|
import pushRight from './../../assets/icons/push-right.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import settings from './../../assets/icons/settings.svg';
|
2020-03-11 00:34:09 +01:00
|
|
|
import sorting from './../../assets/icons/sorting.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
import sortingActiveDown from './../../assets/icons/sorting-active-down.svg';
|
|
|
|
|
import sortingActiveUp from './../../assets/icons/sorting-active-up.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import statusAlert from './../../assets/icons/status-alert.svg';
|
|
|
|
|
import statusLocked from './../../assets/icons/status-locked.svg';
|
|
|
|
|
import statusTracked from './../../assets/icons/status-tracked.svg';
|
|
|
|
|
import statusUntracked from './../../assets/icons/status-untracked.svg';
|
2020-04-13 12:59:58 +02:00
|
|
|
import tracked from './../../assets/icons/tracked.svg';
|
2020-06-26 17:34:43 +02:00
|
|
|
import unlink from './../../assets/icons/unlink.svg';
|
2022-11-16 20:19:52 +01:00
|
|
|
import checkboxChecked from './../../assets/icons/checkbox-checked.svg';
|
|
|
|
|
import checkboxUnchecked from './../../assets/icons/checkbox-unchecked.svg';
|
2023-04-28 22:13:47 +02:00
|
|
|
import iconAlertOutline from './../../assets/icons/icons-alert-outline.svg';
|
|
|
|
|
import iconAlertSmall from './../../assets/icons/icon-alert-small.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import iconClose from './../../assets/icons/icon-close.svg';
|
2022-11-16 20:19:52 +01:00
|
|
|
import iconNextInactive from './../../assets/icons/icon-next-inactive.svg';
|
|
|
|
|
import iconNext from './../../assets/icons/icon-next.svg';
|
2023-02-28 21:57:19 +01:00
|
|
|
import iconPlay from './../../assets/icons/icon-play.svg';
|
|
|
|
|
import iconPause from './../../assets/icons/icon-pause.svg';
|
2022-11-16 20:19:52 +01:00
|
|
|
import iconPrevInactive from './../../assets/icons/icon-prev-inactive.svg';
|
|
|
|
|
import iconPrev from './../../assets/icons/icon-prev.svg';
|
2023-04-28 22:13:47 +02:00
|
|
|
import iconStatusAlert from './../../assets/icons/icon-status-alert.svg';
|
|
|
|
|
import iconTransferring from './../../assets/icons/icon-transferring.svg';
|
|
|
|
|
import iconUpload from './../../assets/icons/icon-upload.svg';
|
2022-11-16 20:19:52 +01:00
|
|
|
import navigationPanelRightHide from './../../assets/icons/navigation-panel-right-hide.svg';
|
|
|
|
|
import navigationPanelRightReveal from './../../assets/icons/navigation-panel-right-reveal.svg';
|
|
|
|
|
import tabLinear from './../../assets/icons/tab-linear.svg';
|
|
|
|
|
import tabPatientInfo from './../../assets/icons/tab-patient-info.svg';
|
|
|
|
|
import tabROIThreshold from './../../assets/icons/tab-roi-threshold.svg';
|
|
|
|
|
import tabSegmentation from './../../assets/icons/tab-segmentation.svg';
|
|
|
|
|
import uiArrowDown from './../../assets/icons/ui-arrow-down.svg';
|
|
|
|
|
import uiArrowUp from './../../assets/icons/ui-arrow-up.svg';
|
|
|
|
|
import loadingOHIFMark from './../../assets/icons/loading-ohif-mark.svg';
|
2022-11-22 04:35:25 +01:00
|
|
|
import notificationsInfo from './../../assets/icons/notifications-info.svg';
|
|
|
|
|
import notificationsWarning from './../../assets/icons/notifications-warning.svg';
|
|
|
|
|
import notificationsError from './../../assets/icons/notifications-error.svg';
|
|
|
|
|
import notificationsSuccess from './../../assets/icons/notifications-success.svg';
|
2020-03-10 20:11:12 +01:00
|
|
|
|
2020-04-07 03:18:52 +02:00
|
|
|
/** Tools */
|
|
|
|
|
import toolZoom from './../../assets/icons/tool-zoom.svg';
|
2020-04-08 18:04:50 +02:00
|
|
|
import toolCapture from './../../assets/icons/tool-capture.svg';
|
|
|
|
|
import toolLayout from './../../assets/icons/tool-layout.svg';
|
|
|
|
|
import toolMore from './../../assets/icons/tool-more-menu.svg';
|
|
|
|
|
import toolMove from './../../assets/icons/tool-move.svg';
|
|
|
|
|
import toolWindow from './../../assets/icons/tool-window-level.svg';
|
2020-04-09 00:31:33 +02:00
|
|
|
import toolAnnotate from './../../assets/icons/tool-annotate.svg';
|
|
|
|
|
import toolBidirectional from './../../assets/icons/tool-bidirectional.svg';
|
|
|
|
|
import toolElipse from './../../assets/icons/tool-elipse.svg';
|
2023-04-17 14:23:03 +02:00
|
|
|
import toolCircle from './../../assets/icons/tool-circle.svg';
|
2020-04-09 00:31:33 +02:00
|
|
|
import toolLength from './../../assets/icons/tool-length.svg';
|
2020-09-15 03:18:46 +02:00
|
|
|
import toolStackScroll from './../../assets/icons/tool-stack-scroll.svg';
|
|
|
|
|
import toolMagnify from './../../assets/icons/tool-magnify.svg';
|
|
|
|
|
import toolFlipHorizontal from './../../assets/icons/tool-flip-horizontal.svg';
|
|
|
|
|
import toolInvert from './../../assets/icons/tool-invert.svg';
|
|
|
|
|
import toolRotateRight from './../../assets/icons/tool-rotate-right.svg';
|
|
|
|
|
import toolCine from './../../assets/icons/tool-cine.svg';
|
2022-07-27 18:39:04 +02:00
|
|
|
import toolCrosshair from './../../assets/icons/tool-crosshair.svg';
|
2020-09-15 03:18:46 +02:00
|
|
|
import toolProbe from './../../assets/icons/tool-probe.svg';
|
|
|
|
|
import toolAngle from './../../assets/icons/tool-angle.svg';
|
|
|
|
|
import toolReset from './../../assets/icons/tool-reset.svg';
|
|
|
|
|
import toolRectangle from './../../assets/icons/tool-rectangle.svg';
|
2022-07-27 18:39:04 +02:00
|
|
|
import toolFusionColor from './../../assets/icons/tool-fusion-color.svg';
|
|
|
|
|
import toolCreateThreshold from './../../assets/icons/tool-create-threshold.svg';
|
2023-02-23 03:01:36 +01:00
|
|
|
import toolCalibration from './../../assets/icons/tool-calibration.svg';
|
2023-04-28 02:53:52 +02:00
|
|
|
import toolFreehand from './../../assets/icons/tool-freehand.svg';
|
|
|
|
|
import toolFreehandPolygon from './../../assets/icons/tool-freehand-polygon.svg';
|
|
|
|
|
import toolPolygon from './../../assets/icons/tool-polygon.svg';
|
2022-07-27 18:39:04 +02:00
|
|
|
import editPatient from './../../assets/icons/edit-patient.svg';
|
2022-11-16 20:19:52 +01:00
|
|
|
import panelGroupMore from './../../assets/icons/panel-group-more.svg';
|
|
|
|
|
import panelGroupOpenClose from './../../assets/icons/panel-group-open-close.svg';
|
|
|
|
|
import rowAdd from './../../assets/icons/row-add.svg';
|
|
|
|
|
import rowEdit from './../../assets/icons/row-edit.svg';
|
|
|
|
|
import rowHidden from './../../assets/icons/row-hidden.svg';
|
|
|
|
|
import rowHideAll from './../../assets/icons/row-hide-all.svg';
|
|
|
|
|
import rowHide from './../../assets/icons/row-hide.svg';
|
|
|
|
|
import rowLocked from './../../assets/icons/row-locked.svg';
|
|
|
|
|
import rowShowAll from './../../assets/icons/row-show-all.svg';
|
|
|
|
|
import rowUnhide from './../../assets/icons/row-unhide.svg';
|
|
|
|
|
import rowUnlocked from './../../assets/icons/row-unlocked.svg';
|
|
|
|
|
import iconMPR from './../../assets/icons/icon-mpr-alt.svg';
|
|
|
|
|
import checkboxDefault from './../../assets/icons/checkbox-default.svg';
|
|
|
|
|
import checkboxActive from './../../assets/icons/checkbox-active.svg';
|
|
|
|
|
import referenceLines from './../../assets/icons/reference-lines.svg';
|
2020-04-07 03:18:52 +02:00
|
|
|
|
2020-06-26 21:49:34 +02:00
|
|
|
/** Old OHIF */
|
2020-07-03 18:39:41 +02:00
|
|
|
import oldTrash from './../../assets/icons/old-trash.svg';
|
2020-08-19 21:24:07 +02:00
|
|
|
import oldPlay from './../../assets/icons/old-play.svg';
|
|
|
|
|
import oldStop from './../../assets/icons/old-stop.svg';
|
2020-06-26 21:59:47 +02:00
|
|
|
|
2020-03-10 20:11:12 +01:00
|
|
|
const ICONS = {
|
2020-03-13 15:37:17 +01:00
|
|
|
'arrow-down': arrowDown,
|
2023-02-28 21:57:19 +01:00
|
|
|
'arrow-left': arrowLeft,
|
|
|
|
|
'arrow-left-small': arrowLeftSmall,
|
|
|
|
|
'arrow-right-small': arrowRightSmall,
|
2020-03-19 23:58:13 +01:00
|
|
|
calendar: calendar,
|
2020-03-10 20:11:12 +01:00
|
|
|
cancel: cancel,
|
2020-07-22 20:25:51 +02:00
|
|
|
clipboard: clipboard,
|
2020-06-26 17:34:43 +02:00
|
|
|
close: close,
|
2020-04-13 12:59:58 +02:00
|
|
|
'dotted-circle': dottedCircle,
|
|
|
|
|
'circled-checkmark': circledCheckmark,
|
2020-03-10 20:11:12 +01:00
|
|
|
'chevron-down': chevronDown,
|
2020-04-07 03:18:52 +02:00
|
|
|
'chevron-left': chevronLeft,
|
2023-03-22 23:04:44 +01:00
|
|
|
'chevron-menu': chevronMenu,
|
2023-02-28 21:57:19 +01:00
|
|
|
'chevron-next': chevronNext,
|
|
|
|
|
'chevron-prev': chevronPrev,
|
2020-03-10 20:11:12 +01:00
|
|
|
'chevron-right': chevronRight,
|
2020-04-10 18:33:14 +02:00
|
|
|
'eye-visible': eyeVisible,
|
|
|
|
|
'eye-hidden': eyeHidden,
|
2020-07-10 21:49:53 +02:00
|
|
|
'external-link': externalLink,
|
2020-04-08 18:00:07 +02:00
|
|
|
'group-layers': groupLayers,
|
2020-04-10 21:47:08 +02:00
|
|
|
info: info,
|
2023-04-28 22:13:47 +02:00
|
|
|
'icon-alert-outline': iconAlertOutline,
|
|
|
|
|
'icon-alert-small': iconAlertSmall,
|
2023-02-28 21:57:19 +01:00
|
|
|
'icon-close': iconClose,
|
|
|
|
|
'icon-play': iconPlay,
|
|
|
|
|
'icon-pause': iconPause,
|
2023-04-28 22:13:47 +02:00
|
|
|
'icon-status-alert': iconStatusAlert,
|
|
|
|
|
'icon-transferring': iconTransferring,
|
2023-02-28 21:57:19 +01:00
|
|
|
'info-action': infoAction,
|
2020-03-10 20:11:12 +01:00
|
|
|
'info-link': infoLink,
|
2020-09-15 03:18:46 +02:00
|
|
|
'arrow-left': arrowLeft,
|
2020-03-10 20:11:12 +01:00
|
|
|
'launch-arrow': launchArrow,
|
|
|
|
|
'launch-info': launchInfo,
|
2020-06-26 17:34:43 +02:00
|
|
|
link: link,
|
2020-04-07 21:47:12 +02:00
|
|
|
'list-bullets': listBullets,
|
2020-04-13 18:48:45 +02:00
|
|
|
lock: lock,
|
2020-03-11 00:34:09 +01:00
|
|
|
'logo-ohif-small': logoOhifSmall,
|
2020-03-13 03:27:48 +01:00
|
|
|
magnifier: magnifier,
|
2020-09-15 03:18:46 +02:00
|
|
|
exclamation: exclamation,
|
2020-03-11 00:34:09 +01:00
|
|
|
'notificationwarning-diamond': notificationwarningDiamond,
|
2020-04-10 01:31:21 +02:00
|
|
|
pencil: pencil,
|
2022-10-07 04:40:16 +02:00
|
|
|
'power-off': powerOff,
|
2020-04-13 18:48:45 +02:00
|
|
|
profile: profile,
|
2020-04-08 18:00:07 +02:00
|
|
|
'push-left': pushLeft,
|
|
|
|
|
'push-right': pushRight,
|
2020-03-10 20:11:12 +01:00
|
|
|
settings: settings,
|
|
|
|
|
'sorting-active-down': sortingActiveDown,
|
|
|
|
|
'sorting-active-up': sortingActiveUp,
|
2023-02-28 21:57:19 +01:00
|
|
|
'status-alert': statusAlert,
|
|
|
|
|
'status-locked': statusLocked,
|
|
|
|
|
'status-tracked': statusTracked,
|
|
|
|
|
'status-untracked': statusUntracked,
|
2020-03-10 20:11:12 +01:00
|
|
|
sorting: sorting,
|
2020-04-13 12:59:58 +02:00
|
|
|
tracked: tracked,
|
2020-06-26 17:34:43 +02:00
|
|
|
unlink: unlink,
|
2022-11-16 20:19:52 +01:00
|
|
|
'panel-group-more': panelGroupMore,
|
|
|
|
|
'panel-group-open-close': panelGroupOpenClose,
|
|
|
|
|
'row-add': rowAdd,
|
|
|
|
|
'row-edit': rowEdit,
|
|
|
|
|
'row-hidden': rowHidden,
|
|
|
|
|
'row-hide-all': rowHideAll,
|
|
|
|
|
'row-hide': rowHide,
|
|
|
|
|
'row-locked': rowLocked,
|
|
|
|
|
'row-show-all': rowShowAll,
|
|
|
|
|
'row-unhide': rowUnhide,
|
|
|
|
|
'row-unlocked': rowUnlocked,
|
|
|
|
|
'checkbox-checked': checkboxChecked,
|
|
|
|
|
'checkbox-unchecked': checkboxUnchecked,
|
|
|
|
|
'loading-ohif-mark': loadingOHIFMark,
|
2022-11-22 04:35:25 +01:00
|
|
|
'notifications-info': notificationsInfo,
|
|
|
|
|
'notifications-error': notificationsError,
|
|
|
|
|
'notifications-success': notificationsSuccess,
|
|
|
|
|
'notifications-warning': notificationsWarning,
|
2020-04-07 03:18:52 +02:00
|
|
|
|
|
|
|
|
/** Tools */
|
|
|
|
|
'tool-zoom': toolZoom,
|
2020-04-08 18:04:50 +02:00
|
|
|
'tool-capture': toolCapture,
|
|
|
|
|
'tool-layout': toolLayout,
|
|
|
|
|
'tool-more-menu': toolMore,
|
|
|
|
|
'tool-move': toolMove,
|
|
|
|
|
'tool-window-level': toolWindow,
|
2020-04-09 00:31:33 +02:00
|
|
|
'tool-annotate': toolAnnotate,
|
|
|
|
|
'tool-bidirectional': toolBidirectional,
|
|
|
|
|
'tool-elipse': toolElipse,
|
2023-04-17 14:23:03 +02:00
|
|
|
'tool-circle': toolCircle,
|
2020-04-09 00:31:33 +02:00
|
|
|
'tool-length': toolLength,
|
2020-09-15 03:18:46 +02:00
|
|
|
'tool-stack-scroll': toolStackScroll,
|
|
|
|
|
'tool-magnify': toolMagnify,
|
|
|
|
|
'tool-flip-horizontal': toolFlipHorizontal,
|
|
|
|
|
'tool-invert': toolInvert,
|
|
|
|
|
'tool-rotate-right': toolRotateRight,
|
|
|
|
|
'tool-cine': toolCine,
|
2022-07-27 18:39:04 +02:00
|
|
|
'tool-crosshair': toolCrosshair,
|
2020-09-15 03:18:46 +02:00
|
|
|
'tool-probe': toolProbe,
|
|
|
|
|
'tool-angle': toolAngle,
|
|
|
|
|
'tool-reset': toolReset,
|
|
|
|
|
'tool-rectangle': toolRectangle,
|
2022-07-27 18:39:04 +02:00
|
|
|
'tool-fusion-color': toolFusionColor,
|
|
|
|
|
'tool-create-threshold': toolCreateThreshold,
|
2023-02-23 03:01:36 +01:00
|
|
|
'tool-calibration': toolCalibration,
|
2023-04-28 02:53:52 +02:00
|
|
|
'tool-point': toolCircle,
|
|
|
|
|
'tool-circle': toolCircle,
|
|
|
|
|
'tool-freehand-line': toolFreehand,
|
|
|
|
|
'tool-freehand-polygon': toolFreehandPolygon,
|
|
|
|
|
'tool-polygon': toolPolygon,
|
2022-07-27 18:39:04 +02:00
|
|
|
'edit-patient': editPatient,
|
2022-11-16 20:19:52 +01:00
|
|
|
'icon-mpr': iconMPR,
|
|
|
|
|
'icon-next-inactive': iconNextInactive,
|
|
|
|
|
'icon-next': iconNext,
|
|
|
|
|
'icon-prev-inactive': iconPrevInactive,
|
|
|
|
|
'icon-prev': iconPrev,
|
2023-04-28 22:13:47 +02:00
|
|
|
'icon-upload': iconUpload,
|
2022-11-16 20:19:52 +01:00
|
|
|
'navigation-panel-right-hide': navigationPanelRightHide,
|
|
|
|
|
'navigation-panel-right-reveal': navigationPanelRightReveal,
|
|
|
|
|
'tab-linear': tabLinear,
|
|
|
|
|
'tab-patient-info': tabPatientInfo,
|
|
|
|
|
'tab-roi-threshold': tabROIThreshold,
|
|
|
|
|
'tab-segmentation': tabSegmentation,
|
|
|
|
|
'ui-arrow-down': uiArrowDown,
|
|
|
|
|
'ui-arrow-up': uiArrowUp,
|
|
|
|
|
'checkbox-default': checkboxDefault,
|
|
|
|
|
'checkbox-active': checkboxActive,
|
|
|
|
|
'tool-referenceLines': referenceLines,
|
2020-06-26 21:49:34 +02:00
|
|
|
|
|
|
|
|
/** Old OHIF */
|
2020-07-10 21:49:53 +02:00
|
|
|
'old-trash': oldTrash,
|
2020-08-19 21:24:07 +02:00
|
|
|
'old-play': oldPlay,
|
|
|
|
|
'old-stop': oldStop,
|
2020-03-10 20:11:12 +01:00
|
|
|
};
|
|
|
|
|
|
2022-11-17 02:27:24 +01:00
|
|
|
function addIcon(iconName, iconSVG) {
|
|
|
|
|
if (ICONS[iconName]) {
|
|
|
|
|
console.warn(`Icon ${iconName} already exists.`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ICONS[iconName] = iconSVG;
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-10 20:11:12 +01:00
|
|
|
/**
|
|
|
|
|
* Return the matching SVG Icon as a React Component.
|
|
|
|
|
* Results in an inlined SVG Element. If there's no match,
|
|
|
|
|
* return `null`
|
|
|
|
|
*/
|
|
|
|
|
export default function getIcon(key, props) {
|
|
|
|
|
if (!key || !ICONS[key]) {
|
|
|
|
|
return React.createElement('div', null, 'Missing Icon');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return React.createElement(ICONS[key], props);
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-17 02:27:24 +01:00
|
|
|
export { getIcon, ICONS, addIcon };
|