import React, {FC, Fragment, useState} from "react"; import {Provider} from './context' import {Mode, Provider as TabProvider} from './tab-context' interface ITabs { children: React.ReactNode[]; tabsClassName?: string; sectionsClassName?: string; } const Tabs: FC = ({children, tabsClassName, sectionsClassName}) => { const [tab, setTab] = useState(0) const tabCount = children.length return (
{children.map((child: React.ReactNode, index: number) => { return ( {child} ) })}
{children.map((child: React.ReactNode, index: number) => { return ( {child} ) })}
) } export default Tabs