'use client'; import { Tabs } from '@base-ui/react/tabs'; import type { ReactNode } from 'react'; export interface NotionTabItem { id: string; label: ReactNode; icon: ReactNode; children: ReactNode; } export function NotionTabs({ id, tabs }: { id: string; tabs: NotionTabItem[] }) { const defaultValue = tabs[0]?.id; if (!defaultValue) return null; return ( {tabs.map((tab) => ( {tab.icon} {tab.label} ))} {tabs.map((tab) => ( {tab.children} ))} ); }