import type { ReactNode } from "react"; import { TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useSidebar } from "../context/SidebarContext"; export interface PageTabItem { value: string; label: ReactNode; } interface PageTabBarProps { items: PageTabItem[]; value?: string; onValueChange?: (value: string) => void; } export function PageTabBar({ items, value, onValueChange }: PageTabBarProps) { const { isMobile } = useSidebar(); if (isMobile && value !== undefined && onValueChange) { return ( ); } return ( {items.map((item) => ( {item.label} ))} ); }