import { useState } from 'react'; import type { AssetsTab } from './assetTypes'; import AssetManagement from './AssetManagement'; import AssetTheory from './AssetTheory'; import ShipInsurance from './ShipInsurance'; import { useFeatureTracking } from '@common/hooks/useFeatureTracking'; // ── Main AssetsView ── export function AssetsView() { const [activeTab, setActiveTab] = useState('management'); // 내부 탭 전환 시 자동 감사 로그 useFeatureTracking(`assets:${activeTab}`); return (
{/* Tab Navigation */}
{[ { id: 'management' as const, label: '자산 관리' }, // { id: 'upload' as const, label: '자산 현행화 (업로드)' }, { id: 'theory' as const, label: '방제자원 이론' }, { id: 'insurance' as const, label: '선박 보험정보' }, ].map((tab) => ( ))}
{/*
👤 남해청_방제과 (수정 권한 ✅)
*/}
{/* Content */}
{activeTab === 'management' && } {/* {activeTab === 'upload' && } */} {activeTab === 'theory' && } {activeTab === 'insurance' && }
); }