import React from 'react' import { FormGroup, FormSelect } from 'react-bootstrap' import { setSpotlight } from '@/app/actions' import { useAppDispatch, useAppSelector } from '@/app/hooks' import { SPOTLIGHT } from '@/constants' import { checkFormValue, isFormDisabled } from '@/utils' import { TooltipFormLabel } from './TooltipFormLabel' export const SpotlightForm: React.FC = () => { const spotlight = useAppSelector((state) => state.spotlight) const connectionStatus = useAppSelector((state) => state.soraContents.connectionStatus) const disabled = isFormDisabled(connectionStatus) const dispatch = useAppDispatch() const onChange = (event: React.ChangeEvent): void => { if (checkFormValue(event.target.value, SPOTLIGHT)) { dispatch(setSpotlight(event.target.value)) } } return ( spotlight: {SPOTLIGHT.map((value) => { return ( ) })} ) }