import { b as attr, p as pop, a as push } from "../../../chunks/index.js";
import { G as Grain } from "../../../chunks/Grain.js";
import { r as resolve } from "../../../chunks/index3.js";
import { p as page } from "../../../chunks/index2.js";
function _layout($$payload, $$props) {
  push();
  const { children } = $$props;
  $$payload.out.push(`<div class="w-full flex flex-col min-h-screen"><div class="navbar bg-base-200 shadow-sm sticky top-0 z-100 sm:px-10 flex-wrap justify-between"><a${attr("href", resolve("/", {}))}>`);
  Grain($$payload, { logo: true });
  $$payload.out.push(`<!----></a> <ul class="menu menu-horizontal"><li><a class="nav-link"${attr("href", resolve("/grain/apropos", {}))}>À propos</a></li> `);
  if (!page.url.pathname.startsWith("/grain/projet")) {
    $$payload.out.push("<!--[-->");
    $$payload.out.push(`<li><a class="btn btn-sm btn-outline btn-primary"${attr("href", resolve("/grain/projet/[id]", { id: "nouveau" }))}>Je lance ma simulation</a></li>`);
  } else {
    $$payload.out.push("<!--[!-->");
  }
  $$payload.out.push(`<!--]--></ul></div> <div class="flex flex-col flex-1">`);
  children($$payload);
  $$payload.out.push(`<!----></div> <footer class="bg-primary h-2"></footer></div>`);
  pop();
}
export {
  _layout as default
};
