import React from "react"; import PropTypes from "prop-types"; import { FormControl, InputLabel, MenuItem, Select } from "@mui/material"; export const LABELS = { map: "Map View", bourdieu: "Bourdieu View", docs: "Data" }; function DropdownMenu({ onSelectView, selectedView }) { const handleSelectView = (event) => { if (onSelectView) onSelectView(`${event.target.value}`); }; return ( Select a View ); } DropdownMenu.propTypes = { onSelectView: PropTypes.func.isRequired, selectedView: PropTypes.string.isRequired, }; export default DropdownMenu;