useTabsimport React, {useState} from "react";import ReactDOM from "react-dom";const content = [ { tab: "Section1", content: "I'm the content of the Section 1" }, { tab: "Section2", content: "I'm the content of the Section 2" },];const useTabs = (initialTab, allTabs) => { if (!allTabs || !Array.isArray(allTabs)) { return; } const [currentIndex, setCurrentInde..