<template>
  <button :disabled="disabled" :class="{danger: danger, primary: primary, disabled: disabled}">{{label}}</button>
</template>

<script>
export default {
  props: {
    label: String,
    danger: Boolean,
    primary: Boolean,
    disabled: Boolean,
  },
};
</script>

<style scoped>
button {
  cursor: pointer;
  transition: all 0.2s;
  padding: 10px 18px;
  color: #fff;
  font-weight: 500;
  border: none;
  background: #21242B;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

button:hover {
  transition: all 0.2s;
  box-shadow: rgba(0, 0, 0, 0.42) 0px 1px 3px, rgba(0, 0, 0, 0.64) 0px 1px 2px;
}

button.danger {background: #41141B;}
button.danger:hover {background: #61141B;}

button.primary {background: #21244B;}
button.primary:hover {background: #21246B;}

button.disabled, button.disabled:hover,
button.primary.disabled, button.primary.disabled:hover,
button.danger.disabled, button.danger.disabled:hover {
  color: #777;
  box-shadow: none;
  background-color: transparent;
}

</style>
