/********************************************************************* * © Copyright IBM Corp. 2024 *********************************************************************/ import React from 'react' import PropTypes from 'prop-types' import {FontColorSelected, IconsGeneralColor} from '@targetprocess/css-variables' export const Types = { DEFAULT: 'default', ON: 'on', DISABLED: 'disabled' } as const export const NotificationIcon = ({ color = IconsGeneralColor, type = Types.DEFAULT as typeof Types[keyof typeof Types] }) => ( {type === Types.DEFAULT && ( )} {type === Types.ON && ( )} {type === Types.DISABLED && ( )} ) NotificationIcon.category = 'Entity' NotificationIcon.propTypes = { // Object.keys used here // eslint-disable-next-line security/detect-object-injection type: PropTypes.oneOf(Object.keys(Types).map(key => Types[key])), color: PropTypes.string } NotificationIcon.Types = Types