import React from 'react' import { FormGroup, FormSelect } from 'react-bootstrap' import { setLightAdjustment } from '@/app/actions' import { useAppDispatch, useAppSelector } from '@/app/hooks' import { LIGHT_ADJUSTMENT } from '@/constants' import { checkFormValue } from '@/utils' import { TooltipFormLabel } from './TooltipFormLabel' export const LightAdjustmentForm: React.FC = () => { const lightAdjustment = useAppSelector((state) => state.lightAdjustment) const mediaType = useAppSelector((state) => state.mediaType) const dispatch = useAppDispatch() const onChange = (event: React.ChangeEvent): void => { if (checkFormValue(event.target.value, LIGHT_ADJUSTMENT)) { dispatch(setLightAdjustment(event.target.value)) } } const disabled = mediaType !== 'getUserMedia' return ( lightAdjustment: {LIGHT_ADJUSTMENT.map((value) => { return ( ) })} ) }