feat: add settings and last run tab
parent
c2e9056705
commit
17a908fac1
@ -0,0 +1,34 @@
|
|||||||
|
'use client'
|
||||||
|
import TabHeader from '@/app/components/base/tab-header'
|
||||||
|
import type { FC } from 'react'
|
||||||
|
import React from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
|
export enum TabType {
|
||||||
|
settings = 'settings',
|
||||||
|
lastRun = 'lastRun',
|
||||||
|
}
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
value: TabType,
|
||||||
|
onChange: (value: TabType) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
const Tab: FC<Props> = ({
|
||||||
|
value,
|
||||||
|
onChange,
|
||||||
|
}) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
return (
|
||||||
|
<TabHeader
|
||||||
|
items={[
|
||||||
|
{ id: TabType.settings, name: t('workflow.debug.settingsTab').toLocaleUpperCase() },
|
||||||
|
{ id: TabType.lastRun, name: t('workflow.debug.lastRunTab').toLocaleUpperCase() },
|
||||||
|
]}
|
||||||
|
itemClassName='ml-0'
|
||||||
|
value={value}
|
||||||
|
onChange={onChange as any}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
export default React.memo(Tab)
|
||||||
Loading…
Reference in New Issue