<template lang="pug">
span.badge.badge-pill.badge-item.badge-count(
  v-if="show && count != 0",
) {{ count }}
</template>

<style lang="scss">
@import '~client/assets/scss/colors.scss';

.badge-count {
  right: -9px;
  color: $white;
  background: $orange-100;
  padding: 4.5px 6px;
  min-width: 24px;
  height: 24px;
  box-shadow: 0 1px 1px 0 rgba($black, 0.12);
}

</style>

<script>
  export default {
    props: {
      show: {
        type: Boolean,
      },
      count: {
        type: Number,
      },
    },
  };
</script>
