diff --git a/src/components/InstallButton.js b/src/components/InstallButton.js new file mode 100644 index 000000000..7a98ef054 --- /dev/null +++ b/src/components/InstallButton.js @@ -0,0 +1,58 @@ +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 = (items, index) => + items.map((item) => ( + {item} + )); + +const createInstallLink = () => { + return `https://one.newrelic.com/launcher/nr1-core.explorer`; +}; + +const InstallButton = ({ title, ...props }) => { + return ( +
+ + + + {createMenuItems(sampleItems)} + +
+ ); +}; + +InstallButton.propTypes = { + title: PropTypes.string, + guid: PropTypes.string, +}; + +export default InstallButton;