<template>
  <div
    v-click-outside="hidePopover"
    :class="{'widget-popover--mobile': mobile}"
    class="widget-popover">
    <ul class="widget-popover__links popover-links">
      <slot/>
    </ul>
  </div>
</template>

<script>
  export default {
    props: {
      mobile: {
        type: Boolean,
        default: false
      }
    },

    methods: {
      hidePopover() {
        this.$emit('hide-me');
      },
    }
  };
</script>

<style scoped lang="scss">

</style>
