'use client' import type { FC } from 'react' import React, { useState } from 'react' import { useTranslation } from 'react-i18next' import cn from 'classnames' import Result from './result' import Tracing from './tracing' type RunProps = { activeTab?: 'RESULT' | 'TRACING' runID: string } const RunPanel: FC = ({ activeTab = 'RESULT', runID }) => { const { t } = useTranslation() const [currentTab, setCurrentTab] = useState(activeTab) return (
{/* tab */}
setCurrentTab('RESULT')} >{t('runLog.result')}
setCurrentTab('TRACING')} >{t('runLog.tracing')}
{/* panel detal */}
{currentTab === 'RESULT' && } {currentTab === 'TRACING' && }
) } export default RunPanel