<template>

    <div class="app">
        <topbar :items="profileItems"></topbar>
        <sidebar :items="navigationItems"></sidebar>

        <div class="content_area">
            <div class="content_main">
                <transition name="component-fade" mode="out-in">
                    <router-view></router-view>
                </transition>
            </div>
        </div>
    </div>
</template>

<style lang="less">
    @import "app";

    .component-fade-enter-active,
    .component-fade-leave-active {
      transition: opacity .3s ease;
    }

    .component-fade-enter,
    .component-fade-leave-to {
      opacity: 0;
    }
</style>

<script>
import Topbar from './components/topbar.vue';
import Sidebar from './components/sidebar.vue';

export default {
    name: "App",
    components: {
        Topbar,
        Sidebar
    },
    data() {
        return {
            navigationItems: this.$store.state.ui.navigation.main,
            profileItems: this.$store.state.ui.navigation.profile
        }
    },
    created() {
    }
}
</script>
