import{Link as u}from"./vendor/inertia-CR4tWtMT.js";import{_ as d}from"./LocaleSwitcher.vue_vue_type_script_setup_true_lang-4M-c0Clb.js";import{d as f,aT as a,W as m,Q as o,bK as g,X as t,a2 as h,bh as s,u as k,U as c,b3 as b,O as x}from"./vendor-reka-Edfq1EPl.js";const w={class:"mb-6"},L={class:"flex items-center justify-between gap-4"},v={class:"text-2xl font-semibold tracking-tight"},y={class:"flex items-center gap-3"},H=f({__name:"PageHeader",props:{title:{},backHref:{},backLabel:{},currentLocale:{},languages:{},onSwitchLocale:{type:Function}},setup(e){const l=e,r=x(()=>(l.languages??[]).length>1);return(i,n)=>(a(),m("div",w,[e.backHref?(a(),o(k(u),{key:0,href:e.backHref,class:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground mb-2"},{default:g(()=>[n[0]||(n[0]=t("svg",{class:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)),h(" "+s(e.backLabel),1)]),_:1},8,["href"])):c("",!0),t("div",L,[t("h1",v,s(e.title),1),t("div",y,[b(i.$slots,"actions"),r.value&&e.currentLocale!=null&&e.onSwitchLocale?(a(),o(d,{key:0,"current-locale":e.currentLocale,languages:e.languages??[],"on-switch":e.onSwitchLocale},null,8,["current-locale","languages","on-switch"])):c("",!0)])])]))}});export{H as _};
