"use client"; import Link from "next/link"; import type { ReactNode } from "react"; import { TabList, TabPanel, Tabs } from "@unlocalhosted/metalui"; import { ExternalIcon } from "./icons"; import { Box } from "./ui"; export type DocTab = { label: string; href: string; content: ReactNode }; /** README, license and friends as MetalUI tabs over one raised plate. */ export function DocTabs({ tabs }: { tabs: DocTab[] }) { return (
({ value: t.href, label: t.label }))} />
{tabs.map((t) => ( {t.content} ))}
); }