import{j as e,r as n,x as a,L as t,T as s,O as m}from"./main-TIUJvpaR.js";import{a as c}from"./admin-config-DnlTcyOh.js";import{D as u}from"./settings-links-DfKKjWK1.js";import{D as g}from"./datatable-page-with-header-layout-Bbr3vl7W.js";import{u as x}from"./use-url-backed-tabs-AgHgQ8A4.js";import{T as d,a as p,b as o}from"./tabs-CZm6G2eA.js";import"./external-link-DvqU4uvd.js";import"./dashboard-layout-context-DA6Q35rI.js";import"./use-toggle-dashboard-left-sidebar-BuzWlDo2.js";const i=[{uri:"schedule",label:a("Schedule")},{uri:"error",label:a("Error")},{uri:"outgoing-email",label:a("Email")}];function C(){const[r,l]=x(i);return e.jsxs(n.Fragment,{children:[e.jsx(g,{title:e.jsx(b,{tab:i[r].uri}),showSidebarToggleButton:!0,border:"border-none",rightContent:e.jsx(u,{variant:"button",link:c.pages.logs,size:"xs"})}),e.jsxs(d,{selectedTab:r,onTabChange:l,children:[e.jsxs(p,{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(m,{})]})]})}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{C as Component};
