"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react"),l=require("@mui/material/Tab"),a=require("@mui/material/Box"),t=require("@mui/lab/TabContext"),i=require("@mui/lab/TabList"),n=require("@mui/lab/TabPanel");require("styled-components");var u=require("react/jsx-runtime");exports.default=function(o){var s,b=o.tabs,d=void 0===b?[]:b,c=o.defaultTab,m=r.useState(null===(s=d[c])||void 0===s?void 0:s.label),x=e.slicedToArray(m,2),p=x[0],v=x[1];return u.jsx(a,{sx:{width:"100%",typography:"body1"},children:u.jsxs(t,{value:p,children:[u.jsx(a,{sx:{borderBottom:1,borderColor:"divider"},children:u.jsx(i,{onChange:function(e,r){v(r)},"aria-label":"lab API tabs example",variant:"scrollable",scrollButtons:!0,allowScrollButtonsMobile:!0,children:d.map(function(e,r){return u.jsx(l,{label:e.label,value:e.label},r)})})}),d.map(function(e,r){return u.jsx(n,{value:e.label,style:{margin:0,padding:0,display:"flex",alignItems:"center",justifyContent:"center"},children:e.component},r)})]})})};
//# sourceMappingURL=Tabs.js.map
