mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Initialize the data pipeline canvas. #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
13 lines
256 B
TypeScript
13 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;
|
|
}
|