import React from "react"; import { Box, Flex } from "theme-ui"; const MenuList: React.FunctionComponent<{ defaultValue: string; options: string[]; onChange: (selected: string) => void; }> = ({ defaultValue, options, onChange }) => { return ( `1px solid ${String(t.colors?.darkBorder)}`, boxShadow: "0 10px 10px rgba(0, 0, 0, 0.05)", maxHeight: 340, minWidth: 180, maxWidth: 350, color: "text", }} > {options.map((option) => { return ( ); })} ); }; export default MenuList; const MenuItem: React.FunctionComponent<{ value: string; isActive: boolean; onClick: (v: string) => void; }> = ({ value, isActive, onClick }) => { return ( onClick(value)} > {value} ); };