Commit 0d5095f1 by chenwq

开放语音功能

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