<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <span
      :class="{ 'is-active': isActive }"
      class="hamburger el-icon-s-unfold"
      viewBox="0 0 1024 1024"
      width="64"
      height="64"
    >
    </span>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
.hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #ffffff;
}

.hamburger.is-active {
  transform: rotate(180deg);
}
</style>
