import{At as e,I as t,a as n,f as r,m as i,p as a,u as o}from"./chunk.p3hCiSrt.js";var s=e(),c=()=>{let e=r(),c=i().url.pathname.startsWith(`/db/editor`)?`editor`:`erd`;return(0,s.jsxs)(n,{direction:`column`,style:{flex:1},children:[(0,s.jsx)(n,{px:`md`,py:`xs`,style:{borderBottom:`1px solid ${o.colors.border}`},children:(0,s.jsx)(t,{size:`xs`,value:c,onChange:t=>{e.push(t===`editor`?`/db/editor`:`/db/erd`)},data:[{label:`ERD`,value:`erd`},{label:`Editor`,value:`editor`}]})}),(0,s.jsx)(a,{})]})};export{c as DevDatabase,c as default};