/**
 * Pipeline React Hook
 */
import * as React from 'react';
import { Pipeline } from './pipeline';
/**
 * 创建或使用 Pipeline 实例的 Hook
 */
export function usePipeline() {
    const pipelineRef = React.useRef(null);
    if (!pipelineRef.current) {
        pipelineRef.current = new Pipeline();
    }
    return pipelineRef.current;
}
