<template>
  <div class="tab-header">
    <i v-if="icon" :class="['mr5', 'primary', icon]"></i>
    <span class="label">{{ label }}</span>
  </div>
</template>

<script>
export default {
  props: {
    icon: {
      type: String,
      default: "",
    },
    label: {
      type: String,
      default: "",
    },
  },
};
</script>

<style lang="less" scoped>
.tab-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0px 15px;
  font-size: 14px;
  position: relative;
  cursor: default;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #e4e7ed;
    z-index: 1;
  }
  .label {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.65);
  }
}
</style>