feat(video-search): add video search

This commit is contained in:
ItzCrazyKns 2024-04-30 14:31:32 +05:30
parent bb9a2f538d
commit 6e304e7051
No known key found for this signature in database
GPG key ID: 8162927C7CCE3065
6 changed files with 336 additions and 7 deletions

View file

@ -16,6 +16,7 @@ import Copy from './MessageActions/Copy';
import Rewrite from './MessageActions/Rewrite';
import MessageSources from './MessageSources';
import SearchImages from './SearchImages';
import SearchVideos from './SearchVideos';
const MessageBox = ({
message,
@ -120,13 +121,10 @@ const MessageBox = ({
query={history[messageIndex - 1].content}
chat_history={history.slice(0, messageIndex - 1)}
/>
<div className="border border-dashed border-[#1C1C1C] px-4 py-2 flex flex-row items-center justify-between rounded-lg text-white text-sm w-full">
<div className="flex flex-row items-center space-x-2">
<VideoIcon size={17} />
<p>Search videos</p>
</div>
<PlusIcon className="text-[#24A0ED]" size={17} />
</div>
<SearchVideos
chat_history={history.slice(0, messageIndex - 1)}
query={history[messageIndex - 1].content}
/>
</div>
</div>
)}