/********************************************************************* * © Copyright IBM Corp. 2024 *********************************************************************/ import React from 'react' import PropTypes from 'prop-types' import {IconsGeneralColor} from '@targetprocess/css-variables' export const Types = { DEFAULT: 'default', OUTLINE: 'outline', COMPACT: 'compact' } export const CommentIcon = ({color = IconsGeneralColor, type = Types.DEFAULT}) => ( {type === Types.DEFAULT && ( )} {type === Types.OUTLINE && ( )} {type === Types.COMPACT && ( )} ) CommentIcon.category = 'Entity' CommentIcon.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 } CommentIcon.Types = Types