<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <i
      :class="{ 'el-icon-s-fold': isActive, 'el-icon-s-unfold': !isActive }"
    ></i>
  </div>
</template>

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