import { Box, Button, Modal, ModalDialog, Option, Select, Typography, } from '@mui/joy' import React from 'react' function SelectModal({ isOpen, onClose, onSave, options, title, displayKey }) { const [selected, setSelected] = React.useState(null) const handleSave = () => { onSave(options.find(item => item.id === selected)) onClose() } return ( {title} ) } export default SelectModal