import React from 'react' import { FormGroup, FormSelect } from 'react-bootstrap' import { setNoiseSuppression } from '@/app/actions' import { useAppDispatch, useAppSelector } from '@/app/hooks' import { NOISE_SUPPRESSIONS } from '@/constants' import { checkFormValue } from '@/utils' import { TooltipFormLabel } from './TooltipFormLabel' export const NoiseSuppressionForm: React.FC = () => { const noiseSuppression = useAppSelector((state) => state.noiseSuppression) const dispatch = useAppDispatch() const onChange = (event: React.ChangeEvent): void => { if (checkFormValue(event.target.value, NOISE_SUPPRESSIONS)) { dispatch(setNoiseSuppression(event.target.value)) } } return ( noiseSuppression: {NOISE_SUPPRESSIONS.map((value) => { return ( ) })} ) }