<template>
  <div style="padding: 0 8px 0 11px" @click="toggleClick">
    <svg-icon class-name="menu-close" :icon-class="isActive ? 'menu-open' : 'menu-close'" />
  </div>
</template>

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

<style scoped>
.menu-close {
  width: 40px !important;
  height: 72px !important;
}

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