<template>
  <div class="sidebar-logo-container">
    <hamburger
      :is-active="sidebar.opened"
      class="sidebar-hamburger"
      @toggleClick="toggleSideBar"
    />
  </div>
</template>

<script>
import Hamburger from '@/components/Hamburger'

export default {
  name: 'SidebarLogo',
  components: {
    Hamburger
  },
  computed: {
    sidebar() {
      return this.$store.state.app.sidebar
    }
  },
  methods: {
    toggleSideBar() {
      this.$store.dispatch('app/toggleSideBar')
    }
  }
}
</script>

<style lang="scss" scoped>
.sidebar-logo-container {
  position: relative;
  width: 100%;
  height: 50px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-sizing: border-box;
}

.sidebar-hamburger {
  margin-left: auto;
}
</style>
