import React from 'react';
import Tabs from 'vestarplus/Tabs';
import ButtonTabs from './ButtonTabs';
const MyDisabledTabsComponent = () => {
const [activeTab, setActiveTab] = useState(0);
const handleNextTab = () => {
setActiveTab((prevTab) => (prevTab + 1) % tabs.length);
};
const tabs = [
{ label: 'Tab 1', content: <div>Content for Tab 1</div> },
{ label: 'Tab 2', content: <div>Content for Tab 2</div> },
];
return (
<Tabs tabs={tabs} />
<Tabs tabs={tabs} disabled/>
<ButtonTabs
tabs={tabs}
activeTab={activeTab}
setActiveTab={setActiveTab}/>
<div className="mt-5">
<button onClick={handleNextTab}>Next</button>
</div>
);
};
export default MyDisabledTabsComponent;