import { ScrollArea } from "@/components/ui/scroll-area"; import { Separator } from "@/components/ui/separator"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; interface BaseViewProps { children?: React.ReactNode; defaultTab?: string; tabs?: { value: string; label: string; content: React.ReactNode; }[]; className?: string; } function ViewContent({ children }: { children: React.ReactNode }) { return (
{children}
); } export function BaseView({ children, defaultTab, tabs, className = "", }: BaseViewProps) { return (
{!tabs || tabs.length === 0 ? ( {children} ) : (
{tabs.map((tab) => ( {tab.label} ))}
{tabs.map((tab) => ( {tab.content} ))}
)}
); }