import React, { useState } from 'react'; import { Dropdown, DropdownItem, KebabToggle, DropdownPosition, } from '@patternfly/react-core'; import { INVENTORY_PAGE_TITLE, ACTIONS_HISTORY_BUTTON_TEXT, DOCS_BUTTON_TEXT, } from '../../ForemanInventoryConstants'; import { getActionsHistoryUrl, getInventoryDocsUrl, } from '../../ForemanInventoryHelpers'; const PageTitle = () => { const [isDropdownOpen, setIsDropdownOpen] = useState(false); const dropdownItems = [ {ACTIONS_HISTORY_BUTTON_TEXT} , {DOCS_BUTTON_TEXT} , ]; return (

{INVENTORY_PAGE_TITLE}

setIsDropdownOpen(false)} toggle={ setIsDropdownOpen(isOpen)} />} isOpen={isDropdownOpen} isPlain dropdownItems={dropdownItems} position={DropdownPosition.right} />
); }; export default PageTitle;