"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react-i18next"),i=require("./index-CVOA4qIe.js"),r=require("./UnderlinedTabs-u3WNiDaV.js"),o=require("./useTabNavigation-BVtbCTd5.js"),u=require("lucide-react"),l=["all","assigned"];function b(){const{t:e}=c.useTranslation("support"),{activeTab:s,setActiveTab:n}=o.useTabNavigation("all",[...l]);return t.jsxs(i.PageTemplate,{title:e("list.title","Tickets"),icon:t.jsx(u.Ticket,{className:"w-6 h-6"}),breadcrumbs:[{label:e("title","Support"),href:"/support"},{label:e("list.title","Tickets")}],contentClassName:"space-y-4",children:[t.jsx(r.UnderlinedTabs,{tabs:l.map(a=>({id:a,label:a==="all"?e("list.tabs.all","All tickets"):e("list.tabs.assigned","Assigned to me")})),activeTab:s,onTabChange:n,ariaLabel:e("list.tabs.label","Onglets des tickets")}),s==="all"&&t.jsx(i.TicketsListView,{mode:"admin",showDrafts:!1,basePath:"/support/tickets",title:e("list.title"),subtitle:e("list.subtitle"),createPath:"/support/tickets/new"}),s==="assigned"&&t.jsx(i.TicketsListView,{mode:"assigned",showDrafts:!1,basePath:"/support/tickets",title:e("list.assignedTitle","Assigned Tickets"),subtitle:e("list.assignedSubtitle","Tickets assigned to you"),createPath:"/support/tickets/new"})]})}exports.TicketsPage=b;
//# sourceMappingURL=TicketsPage-Cr8PMT0T.js.map
