<template>
<div class="pt-1">
  <b-button
    block
    class="d-flex btn-default justify-content-around align-items-center pr-5"
    @click="emitToParent"
  >
    <font-awesome-icon :icon="icon" />
    <span class="akkurat-regular">{{ title }}</span>
  </b-button>
</div>
</template>

<script>
export default {
  name: 'profile-button',
  props: {
    title: {
      type: String,
      required: true,
    },
    icon: {
      type: String,
    },
  },
  methods: {
    emitToParent() {
      this.$emit('clicked');
    },
  },
};
</script>

<style scoped lang="scss">
@import '../../assets/css/main.scss';
</style>
