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