28 lines
613 B
TypeScript
28 lines
613 B
TypeScript
"use client";
|
|
|
|
import { TabsClient, type TabDef } from "@/components/TabsClient";
|
|
import { OrdersTab } from "./OrdersTab";
|
|
import { DownloadsTab } from "./DownloadsTab";
|
|
import { ProfileTab } from "./ProfileTab";
|
|
|
|
export function AccountTabs() {
|
|
const tabs: TabDef[] = [
|
|
{
|
|
id: "downloads",
|
|
label: "Downloads",
|
|
content: <DownloadsTab />,
|
|
},
|
|
{
|
|
id: "orders",
|
|
label: "Orders",
|
|
content: <OrdersTab />,
|
|
},
|
|
{
|
|
id: "profile",
|
|
label: "Profile",
|
|
content: <ProfileTab />,
|
|
},
|
|
];
|
|
|
|
return <TabsClient defaultTabId="downloads" tabs={tabs} />;
|
|
}
|