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