import{j as e,r as m,J as a,v as t,T as s,O as c}from"./main-D6SjkSWq.js";import{a as i}from"./admin-config-CcVyOMQ2.js";import{D as g}from"./settings-links-CxX7ep34.js";import{D as u}from"./datatable-page-with-header-layout-BuTOEIJh.js";import{u as p}from"./use-url-backed-tabs-CsTiKNi1.js";import{T as d,a as x,b as o}from"./tabs-BwrtVGjA.js";import"./globe-Bnh5BiEZ.js";import"./sticky-note-8BXAdCdJ.js";import"./tags-HILWsbVi.js";import"./external-link-BB1wMD8k.js";import"./dashboard-layout-context-C1ErlVWg.js";const l=[{uri:"schedule",label:a("Schedule")},{uri:"error",label:a("Error")},{uri:"outgoing-email",label:a("Email")}];function O(){const[r,n]=p(l);return e.jsxs(m.Fragment,{children:[e.jsx(u,{title:e.jsx(b,{tab:l[r].uri}),showSidebarToggleButton:!0,border:"border-none",rightContent:i.pages.logs?e.jsx(g,{variant:"button",link:i.pages.logs}):null}),e.jsxs(d,{selectedTab:r,onTabChange:n,children:[e.jsxs(x,{className:"px-24",children:[e.jsx(o,{elementType:t,to:"/admin/logs/schedule",className:"min-w-100",replace:!0,children:e.jsx(s,{message:"Schedule"})}),e.jsx(o,{elementType:t,to:"/admin/logs/error",className:"min-w-100",replace:!0,children:e.jsx(s,{message:"Error"})}),e.jsx(o,{elementType:t,to:"/admin/logs/outgoing-email",className:"min-w-100",replace:!0,children:e.jsx(s,{message:"Email"})})]}),e.jsx(c,{})]})]})}function b({tab:r}){switch(r){case"schedule":return e.jsx(s,{message:"CRON schedule log"});case"error":return e.jsx(s,{message:"Error log"});case"outgoing-email":return e.jsx(s,{message:"Outgoing email log"})}}export{O as Component};
