import { Fragment, ReactNode, useState } from "react"; interface TabProps { id: string; label: string; } interface TabControllerProps { tabs: TabProps[]; children: ReactNode[]; } export default function TabController({ tabs, children }: TabControllerProps) { const [currentIndex, setCurrentIndex] = useState(0); const handleTabClick = (index: number) => { setCurrentIndex(index); }; return (