import { a7 as head, a4 as escape_html } from '../../../../../chunks/index.js-BVnekaYQ.js';
import '../../../../../chunks/exports.js-8HOoaa4e.js';
import '../../../../../chunks/utils2.js-BQzn9ikS.js';
import '../../../../../chunks/utils.js-mIi_c4Oz.js';
import '../../../../../chunks/root.js-l4cSj5gU.js';
import '../../../../../chunks/state.svelte.js-DC2zSH9Y.js';
import { U as UserForm } from '../../../../../chunks/UserForm.js-CxupELTT.js';
import '../../../../../chunks/false.js-B2gHlHjM.js';
import '../../../../../chunks/roles.js-aWc1U_OX.js';

function _page($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    let { data, form } = $$props;
    head("1eum948", $$renderer2, ($$renderer3) => {
      $$renderer3.title(($$renderer4) => {
        $$renderer4.push(`<title>Editar ${escape_html(data.editUser.name)} · Inventario EDUmind</title>`);
      });
    });
    $$renderer2.push(`<div class="mx-auto max-w-3xl"><nav class="mb-4 text-sm text-slate-500"><a href="/users" class="hover:underline">Usuarios</a> · <span>${escape_html(data.editUser.name)}</span></nav> <h1 class="mb-6 text-2xl font-bold text-slate-900">Editar usuario</h1> `);
    UserForm($$renderer2, {
      user: data.editUser,
      values: form?.values,
      error: form?.error,
      submitLabel: "Guardar cambios"
    });
    $$renderer2.push(`<!----> <div class="mt-6 flex justify-end"><form method="POST" action="?/delete"><button class="btn-danger" type="submit">Eliminar usuario</button></form></div></div>`);
  });
}

export { _page as default };
//# sourceMappingURL=_page.svelte.js-BasuhrQp.js.map
