Sha256: ddd1c559780ac2280c68cfe0b90144b8e929f57d0ddf162f60bf9d04521b75e9
Contents?: true
Size: 822 Bytes
Versions: 52
Compression:
Stored size: 822 Bytes
Contents
import React from 'react'; import { useSelector } from 'react-redux'; import { DropdownItem } from '@patternfly/react-core'; import { CodeIcon } from '@patternfly/react-icons'; import { selectAPIResponse } from 'foremanReact/redux/API/APISelectors'; import { translate as __ } from 'foremanReact/common/I18n'; import { HOST_DETAILS_KEY } from 'foremanReact/components/HostDetails/consts'; const HostKebabItems = () => { const { cockpit_url: consoleUrl } = useSelector(state => selectAPIResponse(state, HOST_DETAILS_KEY) ); if (!consoleUrl) return null; return ( <DropdownItem ouiaId="web-console-dropdown-item" icon={<CodeIcon />} href={consoleUrl} target="_blank" rel="noreferrer" > {__('Web Console')} </DropdownItem> ); }; export default HostKebabItems;
Version data entries
52 entries across 52 versions & 1 rubygems