### What problem does this PR solve? Feat: Render agent details #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
12 lines
256 B
TypeScript
12 lines
256 B
TypeScript
import { useCallback } from 'react';
|
|
|
|
export function useOpenDocument() {
|
|
const openDocument = useCallback(() => {
|
|
window.open(
|
|
'https://ragflow.io/docs/dev/category/agent-components',
|
|
'_blank',
|
|
);
|
|
}, []);
|
|
|
|
return openDocument;
|
|
}
|