diff --git a/src/components/Select.js b/src/components/Select.js new file mode 100644 index 000000000..c14983a01 --- /dev/null +++ b/src/components/Select.js @@ -0,0 +1,94 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { css } from '@emotion/react'; + +const Select = ({ disabled, ...props }) => ( +
+ { + setSortState(e.target.value); + }} > - {sortState} - - - { - setSortState('Alphabetical'); - }} - > - Alphabetical - - { - setSortState('Reverse'); - }} - > - Reverse - - { - setSortState('Popularity'); - }} - > - Popularity - - - + {sortOptionValues.map((sortOption) => ( + + ))} + +
- - Filter packs containing - - - + + +
@@ -304,4 +252,35 @@ export const pageQuery = graphql` } `; +const Label = ({ children, htmlFor }) => ( + +); + +Label.propTypes = { + children: PropTypes.node, + htmlFor: PropTypes.string, +}; + +const FormControl = ({ children }) => ( +
+ {children} +
+); + export default ObservabilityPacksPage;