<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-close"
    color="var(--negative-bg)"
    :title="iconOnly ? $t('general.cancel') : undefined"
  >
    {{ $t('general.cancel') }}
  </MainButton>
</template>
