<template>
  <div
    v-for="item in cols"
    :key="item"
    :style="phRowHeight"
    class="ph-circle"
  />
</template>

<script lang="ts">
import { defineComponent } from 'vue'

const DEFAULT_SIZE = '25px'

export default defineComponent({
  name: 'Circle',
  props: {
    rowHeight: {
      type: [Number, String],
      default: undefined
    },
    cols: {
      type: Number,
      default: 1
    }
  },
  computed: {
    phRowHeight () {
      const height = this.rowHeight || DEFAULT_SIZE
      const width = this.rowHeight || DEFAULT_SIZE
      return {
        height,
        width
      }
    }
  }
})
</script>

<style lang="scss" scoped>
.ph-circle {
  @apply rounded-full bg-skeleton-loader;
}
</style>
