<template lang="pug">
  b-modal#invited-friend(:title="$t('modalAchievement')", size='lg', :hide-footer="true")
    .modal-body.text-center
      // @TODO: +achievementAvatar('friends',0)
      achievement-avatar.avatar
      p {{ $t('invitedFriendText') }}
      br
      button.btn.btn-primary(@click='close()') {{ $t('huzzah') }}
    achievement-footer
</template>

<style scope>
  .avatar {
    margin-left: 10.2em;
    margin-bottom: 1.5em;
    margin-top: 1.5em;
  }
</style>

<script>
import bModal from 'bootstrap-vue/lib/components/modal';
import achievementFooter from './achievementFooter';
import achievementAvatar from './achievementAvatar';

export default {
  components: {
    bModal,
    achievementFooter,
    achievementAvatar,
  },
  methods: {
    close () {
      this.$root.$emit('hide::modal', 'invited-friend');
    },
  },
};
</script>
