import SellOutlinedIcon from '@mui/icons-material/SellOutlined'; import { Grid, Typography } from "@mui/material"; import { Autocomplete } from "../Autocomplete/Autocomplete"; import { Select } from "../Select/Select"; import { SelectChip } from "../SelectChip/SelectChip"; import './exercise-options.scss'; export interface DropdownData { options: any[]; label?: string; value?: string; width?: string; onOptionChange?: (value: string) => void; } export interface TagsData { options: any[]; label: string; width: string; onOptionChange?: (value: string) => void; } export interface ExerciseOptions { height?: string; width?: string; requests: number; categorization: DropdownData; resolutionType: DropdownData; resolution: DropdownData; tags: TagsData; } export const ExerciseOptions = ({ height, width, ...exerciseOptions }: ExerciseOptions) => { const handleCategorization = (value: any) => { if (exerciseOptions?.categorization?.onOptionChange) { exerciseOptions.categorization.onOptionChange(value); } }; const handleResolutionType = (value: any) => { if (exerciseOptions?.resolutionType?.onOptionChange) { exerciseOptions.resolutionType.onOptionChange(value); } }; const handleResolution = (value: any) => { if (exerciseOptions?.resolution?.onOptionChange) { exerciseOptions.resolution.onOptionChange(value); } }; const handleTags = (value: any) => { if (exerciseOptions?.tags?.onOptionChange) { exerciseOptions.tags.onOptionChange(value); } }; return (