import { b as attr, p as pop, a as push } from "../../../chunks/index.js";
import { p as page } from "../../../chunks/index2.js";
import { r as resolve } from "../../../chunks/index3.js";
function _error($$payload, $$props) {
  push();
  $$payload.out.push(`<div class="container-md">`);
  if (page.error?.message == "Not Found") {
    $$payload.out.push("<!--[-->");
    $$payload.out.push(`<h1>Erreur 404</h1> <h2>Pas de GRAIN, juste un pépin.</h2>`);
  } else {
    $$payload.out.push("<!--[!-->");
    $$payload.out.push(`<h1>Erreur Interne</h1> <h2>C'est pas vous, c'est nous.</h2>`);
  }
  $$payload.out.push(`<!--]--> <a class="mt-3 btn btn-sm btn-outline-primary text-decoration-none"${attr("href", resolve("/grain", {}))}>Retourner à l'accueil</a></div>`);
  pop();
}
export {
  _error as default
};
