import { l as head, k as escape_html, h as store_get, j as unsubscribe_stores } from './index-DwaY1cAm.js';
import './root-DDSnEAZv.js';
import './state.svelte-hBbXlUak.js';
import { p as page } from './stores-DHNzYNpX.js';

function _error($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    var $$store_subs;
    head("1j96wlh", $$renderer2, ($$renderer3) => {
      $$renderer3.title(($$renderer4) => {
        $$renderer4.push(`<title>Error - Shooter</title>`);
      });
    });
    $$renderer2.push(`<main class="error-page svelte-1j96wlh"><div class="error-content svelte-1j96wlh"><div class="error-code svelte-1j96wlh">${escape_html(store_get($$store_subs ??= {}, "$page", page).status)}</div> <h1 class="error-title svelte-1j96wlh">`);
    if (store_get($$store_subs ??= {}, "$page", page).status === 404) {
      $$renderer2.push("<!--[0-->");
      $$renderer2.push(`Page not found`);
    } else {
      $$renderer2.push("<!--[-1-->");
      $$renderer2.push(`Something went wrong`);
    }
    $$renderer2.push(`<!--]--></h1> <p class="error-message svelte-1j96wlh">`);
    if (store_get($$store_subs ??= {}, "$page", page).error?.message) {
      $$renderer2.push("<!--[0-->");
      $$renderer2.push(`${escape_html(store_get($$store_subs ??= {}, "$page", page).error.message)}`);
    } else if (store_get($$store_subs ??= {}, "$page", page).status === 404) {
      $$renderer2.push("<!--[1-->");
      $$renderer2.push(`The page you're looking for doesn't exist or has been moved.`);
    } else {
      $$renderer2.push("<!--[-1-->");
      $$renderer2.push(`An unexpected error occurred. Try refreshing or going back.`);
    }
    $$renderer2.push(`<!--]--></p> <div class="error-actions svelte-1j96wlh"><button class="error-btn svelte-1j96wlh">Go Home</button> <button class="error-btn error-btn-secondary svelte-1j96wlh">Go Back</button></div></div></main>`);
    if ($$store_subs) unsubscribe_stores($$store_subs);
  });
}

export { _error as default };
//# sourceMappingURL=_error.svelte-uCOJNxvr.js.map
