<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;

  label?: string;
  icon?: string;
}>();
</script>

<template>
  <MainButton
    @click="(e) => $emit('click', e)"
    v-bind="{ ...$props, ...$attrs }"
    :icon="icon || 'mdi-import'"
    color="var(--info-bg)"
    :title="iconOnly ? $t('general.import') : undefined"
  >
    {{ label || $t('general.import') }}
  </MainButton>
</template>
