<script>
  let { logOut = async () => {} } = $props();

  async function onsubmit(event) {
    event.preventDefault();
    await logOut();
  }
</script>

<form class="form" {onsubmit}>
  <button type="submit">log out</button>
</form>
