"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react-i18next"),r=require("./index-2wUhd9Lu.js"),c=require("./useTabNavigation-BVtbCTd5.js"),a=["all","assigned"];function n(){const{t:e}=l.useTranslation("support"),{activeTab:i,setActiveTab:o}=c.useTabNavigation("all",[...a]);return t.jsxs("div",{className:"space-y-4",children:[t.jsx(r.Breadcrumb,{items:[{label:e("title","Support"),href:"/support"},{label:e("list.title","Tickets")}]}),t.jsx("div",{className:"flex gap-1 border-b border-[var(--border-color)]",children:a.map(s=>t.jsx("button",{onClick:()=>o(s),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${i===s?"border-[var(--color-primary-600)] text-[var(--color-primary-600)]":"border-transparent text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:border-[var(--border-color)]"}`,children:s==="all"?e("list.tabs.all","All tickets"):e("list.tabs.assigned","Assigned to me")},s))}),i==="all"&&t.jsx(r.TicketsListView,{mode:"admin",showDrafts:!1,basePath:"/support/tickets",title:e("list.title"),subtitle:e("list.subtitle"),createPath:"/support/tickets/new"}),i==="assigned"&&t.jsx(r.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=n;
//# sourceMappingURL=TicketsPage-WdU4Bb7M.js.map
