import React from 'react';
import {useParams} from 'react-router-dom';
import LogViewer from './components/LogViewer';

const LogStreamPage: React.FC = () => {
    const {processInstanceId} = useParams<{ processInstanceId: string }>();

    if (!processInstanceId) {
        return <div className="p-4">流程实例ID不能为空</div>;
    }

    return (
        <div className="p-4">
            <LogViewer processInstanceId={processInstanceId}/>
        </div>
    );
};

export default LogStreamPage; 