diff --git a/src/components/InstallButton.js b/src/components/InstallButton.js new file mode 100644 index 000000000..93bc95ee7 --- /dev/null +++ b/src/components/InstallButton.js @@ -0,0 +1,63 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { Button, Dropdown, Link } from '@newrelic/gatsby-theme-newrelic'; +import { css } from '@emotion/react'; + +const sampleItems = new Array(10).fill().map((_, i) => i + 1); + +const createMenuItems = (children, items) => { + const menuItems = []; + for (const item of items) { + menuItems.push({item}); + } + return menuItems; +}; + +const createInstallLink = () => { + return `https://one.newrelic.com/launcher/nr1-core.explorer`; +}; + +const InstallButton = ({ children, title, ...props }) => { + return ( +
+ + + + {createMenuItems(children, sampleItems)} + +
+ ); +}; + +InstallButton.propTypes = { + children: PropTypes.node, + title: PropTypes.string, + guid: PropTypes.string, +}; + +export default InstallButton;