<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <img class="hamburger" :class="{'is-active':isActive}" src="../../assets/images/zk.png">
  </div>
</template>

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

<style scoped>
  .hamburger-container{
    position: absolute;
    height: 50px;
    top: 0;
    bottom: 0;
    margin: auto;
    right: -15px;
    cursor: pointer;
	z-index: 2;
  }
.hamburger {
  display: inline-block;
  vertical-align: sub;
  width: 12px;
  height: 50px;
}

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