import { ReactNode } from "react"; type TabItem = { key: string; title: string; content: ReactNode; }; type TabsProps = { items: TabItem[]; active: string; onChange: (key: string) => void; }; export default function Tabs({ items, active, onChange }: TabsProps) { return (