~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
25 lines · 778 B Raw History
<script lang="ts">
  import { enhance } from '$app/forms';
  import HandleInput from '#lib/molecules/HandleInput.svelte';
  import { inPlace } from '#lib/forms.ts';
  import { m } from '#lib/paraglide/messages.js';
  /** Finding someone in the group by their handle, to review them whether or not anyone reported them: picked, they are reviewed at once. */
  let form = $state<HTMLFormElement>();
</script>

<form
  class="find row-form"
  method="post"
  action="?/find"
  role="search"
  bind:this={form}
  use:enhance={inPlace}
>
  <HandleInput
    id="find-handle"
    label={m.find_account_label()}
    placeholder={m.find_account_placeholder()}
    onpick={() => form?.requestSubmit()}
  />
  <button class="quiet" type="submit">{m.find_account_review()}</button>
</form>