import { ProductWorkbench } from "./products/ProductWorkbench";

interface ProductsTabsProps {
  defaultTab?: string;
  onNavigate?: (tab: string) => void;
}

export function ProductsTabs({ defaultTab = "dashboard", onNavigate }: ProductsTabsProps) {
  const viewMap: Record<string, string> = {
    'ai-cockpit': 'dashboard',
    'products': 'products',
    'categories': 'categories',
    'brands': 'brands',
  };

  const defaultView = viewMap[defaultTab] || 'dashboard';

  return (
    <ProductWorkbench 
      onNavigate={onNavigate} 
      defaultView={defaultView as any}
    />
  );
}
