<script lang="ts" setup>
import MainButton from './MainButton.vue';

defineEmits<{
  (e: 'click', v: MouseEvent): void;
}>();
defineProps<{
  iconOnly?: boolean;
  solid?: boolean;
  outlined?: boolean;
  disabled?: boolean;
  dark?: boolean;
}>();
</script>

<template>
  <MainButton
    @click="(e) => $emit('click', e)"
    v-bind="{ ...$props, ...$attrs }"
    icon="mdi-arrow-left"
    color="var(--gray-8-hsl)"
    :title="iconOnly ? $t('general.undo') : undefined"
  >
    {{ $t('general.undo') }}
  </MainButton>
</template>
