<template>
  <button
    v-if="!hasToken"
    class="reset-btn"
    open-type="getPhoneNumber"
    @getphonenumber="onLogin"
  />
</template>

<script setup>
import { computed, defineEmits } from "vue";
import { useAppStore } from "@/store";
import { onLogin } from "@/hooks/useGoLogin";

const emits = defineEmits(["click"]);

const hasToken = computed(() => useAppStore().hasToken);
</script>
