Feat: Add SearchPage component. #3221 (#5184)

### What problem does this PR solve?

Feat: Add SearchPage component. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-02-20 15:37:53 +08:00
committed by GitHub
parent 84bcd8b3bc
commit 07ddb8fcff
6 changed files with 119 additions and 6 deletions

View File

@ -46,6 +46,14 @@ export const useNavigatePage = () => {
navigate(Routes.Agent);
}, [navigate]);
const navigateToSearchList = useCallback(() => {
navigate(Routes.Searches);
}, [navigate]);
const navigateToSearch = useCallback(() => {
navigate(Routes.Search);
}, [navigate]);
const navigateToChunkParsedResult = useCallback(
(id: string, knowledgeId?: string) => () => {
navigate(
@ -91,5 +99,7 @@ export const useNavigatePage = () => {
navigateToChunk,
navigateToAgentList,
navigateToAgent,
navigateToSearchList,
navigateToSearch,
};
};