import type { IndustryTemplate, DetailTab } from '../_types'
import { DETAIL_TABS } from '../_constants'
import { VVTTab } from './VVTTab'
import { TOMTab } from './TOMTab'
import { RiskTab } from './RiskTab'
export function DetailContent({
detail,
activeTab,
onTabChange,
applying,
onApply,
}: {
detail: IndustryTemplate
activeTab: DetailTab
onTabChange: (tab: DetailTab) => void
applying: boolean
onApply: () => void
}) {
return (
{DETAIL_TABS.map((tab) => {
const isActive = activeTab === tab.key
let count = 0
if (tab.key === 'vvt') count = detail.vvt_templates?.length || 0
if (tab.key === 'tom') count = detail.tom_recommendations?.length || 0
if (tab.key === 'risks') count = detail.risk_scenarios?.length || 0
return (
)
})}
{activeTab === 'vvt' && }
{activeTab === 'tom' && }
{activeTab === 'risks' && }
Importiert alle Vorlagen, Empfehlungen und Szenarien in Ihr System.
)
}