feat: Hide the upload button in the external agent's chat box #1880 (#1984)

### What problem does this PR solve?

feat: Hide the upload button in the external agent's chat box  #1880

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-16 18:50:48 +08:00
committed by GitHub
parent 4121636084
commit 8e75a23ad0
5 changed files with 37 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { MessageType } from '@/constants/chat';
import { MessageType, SharedFrom } from '@/constants/chat';
import {
useCreateSharedConversation,
useFetchSharedConversation,
@ -225,3 +225,12 @@ export const useSendSharedMessage = (
loading: !done,
};
};
export const useGetSharedChatSearchParams = () => {
const [searchParams] = useSearchParams();
return {
from: searchParams.get('from') as SharedFrom,
sharedId: searchParams.get('shared_id'),
};
};