import React from 'react' import { Col, FormControl, FormGroup, Row } from 'react-bootstrap' import { setEnabledVideoVP9Params, setVideoVP9Params } from '@/app/actions' import { useAppDispatch, useAppSelector } from '@/app/hooks' import { isFormDisabled } from '@/utils' import { TooltipFormCheck } from './TooltipFormCheck' export const VideoVP9ParamsForm: React.FC = () => { const enabledVideoVP9Params = useAppSelector((state) => state.enabledVideoVP9Params) const videoVP9Params = useAppSelector((state) => state.videoVP9Params) const connectionStatus = useAppSelector((state) => state.soraContents.connectionStatus) const disabled = isFormDisabled(connectionStatus) const dispatch = useAppDispatch() const onChangeSwitch = (event: React.ChangeEvent): void => { dispatch(setEnabledVideoVP9Params(event.target.checked)) } const onChangeText = (event: React.ChangeEvent): void => { dispatch(setVideoVP9Params(event.target.value)) } return ( <> videoVP9Params {enabledVideoVP9Params ? ( ) : null} ) }