"use strict";(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["components/pages/InfoAndStatisticsPage/TrafficUsageLayoutPage"],{2990:(e,a,s)=>{s.r(a),s.d(a,{default:()=>g});var l=s(599),t=s(297),n=s(620),o=s(90),u=s(662),c=s.n(u),i=s(296);const r=o.Locale.getSection("components.pages.InfoAndStatistics.TrafficUsage"),g=()=>{const e=(0,l.useLocation)(),a=(0,l.useNavigate)(),{data:{viewer:{type:s}}}=(0,n.useQuery)(c()),o=[{value:"domains",label:r.lmsg("domains")},{value:"customers",label:r.lmsg("customers")},"ADMIN"===s?{value:"resellers",label:r.lmsg("resellers")}:null].filter(Boolean),u=o.find(({value:a})=>e.pathname.includes(a));return(0,i.jsx)(l.Outlet,{context:{trafficUsagePageDropdown:(0,i.jsx)(t.ButtonGroup,{children:o.map(({value:e,label:s})=>(0,i.jsx)(t.Button,{state:u.value===e?"active":"default",onClick:()=>a(e),children:s},e))})}})}}}]);
//# sourceMappingURL=TrafficUsageLayoutPage.js.map?2259bb1de6ad8c73d7a4