<template>
  <div class="comment-number-container" v-show="data !== 0">
    <div class="icon">
      <WlPic :src="require('@RecordCard/assets/images/message.png')" />
    </div>
    <span>{{ data }}</span>
  </div>
</template>

<script>
import WlPic from "weiling-mobile-ui/lib/WlPic";
export default {
  name: "CommentNumber",
  components: { WlPic },
  props: {
    data: {
      type: Number,
      default: 0,
    },
  },
};
</script>

<style lang="scss" scoped>
.comment-number-container {
  font-weight: 600;
  flex-shrink: 0;
  @extend %flex-middle;
  .icon {
    width: j(15);
    margin-right: j(5);
  }
}
</style>
