Commit 0d5095f1 by chenwq

开放语音功能

1 parent 7180b949
......@@ -20,14 +20,16 @@ const Operation = ({
ref,
onSend,
imgUrl,
speechToTextConfig,
onShowVoiceInput,
}: OperationProps & {
ref: React.RefObject<HTMLDivElement>;
}) => {
return (
<div className={cn("flex shrink-0 items-center justify-end")}>
<div className="flex items-center pl-1" ref={ref}>
{/* <div className='flex items-center space-x-1'>
{fileConfig?.enabled && <FileUploaderInChatInput fileConfig={fileConfig} />}
<div className='flex items-center space-x-1'>
{/* {fileConfig?.enabled && <FileUploaderInChatInput fileConfig={fileConfig} />} */}
{
speechToTextConfig?.enabled && (
<ActionButton
......@@ -38,7 +40,7 @@ const Operation = ({
</ActionButton>
)
}
</div> */}
</div>
{imgUrl && (
<img
onClick={onSend}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!