'use client' import { memo } from 'react' import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger, } from '@/app/components/base/portal-to-follow-elem' import ParamConfigContent from '@/app/components/base/features/new-feature-panel/text-to-speech/param-config-content' import type { OnFeaturesChange } from '@/app/components/base/features/types' type VoiceSettingsProps = { open: boolean onOpen: (state: any) => void onChange?: OnFeaturesChange disabled?: boolean children?: React.ReactNode placementLeft?: boolean } const VoiceSettings = ({ open, onOpen, onChange, disabled, children, placementLeft = true, }: VoiceSettingsProps) => { return ( !disabled && onOpen((open: boolean) => !open)}> {children}
onOpen(false)} onChange={onChange} />
) } export default memo(VoiceSettings)