<template>
  <div>
    <p v-html="content"></p>
    <p class="border-bottom mt-3 mb-5"></p>
    <div class="field is-grouped">
      <div class="control is-expanded">
        <button class="button is-dark" @click="cancel()">Đóng</button>
      </div>
      <div class="control" v-if="duration">
        <CountDown v-bind="{duration: duration}" @close="cancel()"></CountDown>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['content', 'duration'],
  methods: {
    cancel() {
      this.$emit('close')
    }
  }
}
</script>