import React from 'react'; import { LabelsList } from './LabelsList'; import { LabelCategoriesView } from './LabelCategoriesView'; import { LabelTypesView } from './LabelTypesView'; import { LabelTemplatesView } from './LabelTemplatesView'; import { MultipleOptionsView } from './MultipleOptionsView'; type Tab = 'Labels' | 'Label Categories' | 'Label Types' | 'Label Templates' | 'Multiple Options'; interface LabelsViewProps { currentView?: string; onViewChange?: (view: string) => void; } export function LabelsView({ currentView = 'Labels', onViewChange }: LabelsViewProps) { const tabs: Tab[] = [ 'Labels', 'Label Categories', 'Label Types', 'Label Templates', 'Multiple Options' ]; const handleTabClick = (tab: Tab) => { if (onViewChange) { onViewChange(tab); } }; return (
{/* Tabs / Navigation Simulation */}
{tabs.map((tab) => (
handleTabClick(tab)} className={`px-4 py-2 text-sm font-medium whitespace-nowrap cursor-pointer transition-colors ${ currentView === tab ? 'border-b-2' : 'text-gray-500 hover:text-gray-700' }`} style={currentView === tab ? { color: '#1b46c7', borderBottomColor: '#1b46c7' } : undefined} > {tab}
))}
{/* Content */}
{currentView === 'Labels' && } {currentView === 'Label Categories' && } {currentView === 'Label Types' && } {currentView === 'Label Templates' && } {currentView === 'Multiple Options' && } {!['Labels', 'Label Categories', 'Label Types', 'Label Templates', 'Multiple Options'].includes(currentView) && (
{currentView} content coming soon...
)}
); }