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