<template>
  <button :type="type" :disabled="disabled" :class="['btn', theme]"><slot /></button>
</template>

<script setup>
const props =defineProps({
  theme: "green" | "grey-icon",
  type: {
    type: String,
    default: 'submit'
  },
  disabled: {
    type: Boolean,
    default: false
  }
});
</script>

<style scoped lang="scss">
.btn {
  width: auto;
  height: auto;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 6px;

  &.green {
    padding: 6px 12px;
  }
  
  &.brilliant_azure {
    padding: 6px 12px;
  }

  &.grey-icon {
    border-radius: 3px;
    background: linear-gradient(180deg, #fefefe 0%, #f6f6f6 100%);
    padding: 8px;
  }

  &:disabled {
    cursor: not-allowed;
  }
}
</style>
