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