<template>
    <div class="nav-bar">
        <div class="left-cont">
            <bread-crumb></bread-crumb>
        </div>
        <div class="right-cont">
            <div class="user">
                <img src="@/assets/images/common/avatar.png" alt="" />
                <span>Kelly</span>
            </div>
        </div>
    </div>
</template>

<script setup>
import BreadCrumb from "../Breadcrumb/BreadCrumb.vue";
import { onMounted, onUnmounted, ref } from "vue";

const time = ref("");
const timer = ref(null);

onMounted(() => {
    // timer.value = setInterval(() => {
    //     time.value = getCurrentFormattedTime(new Date());
    // }, 1000);
});

onUnmounted(() => {
    timer.value = null;
})

</script>

<style lang="scss" scoped>
.nav-bar {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: space-between;
    position: relative;
    &::before{
        content: '';
        position: absolute;
        bottom: 0;
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
        width: 100%;
        height: 100%;
    }
    .left-cont{
        padding-left: 20px;
    }
    .right-cont {
        display: flex;
        align-items: center;
        padding-right: 20px;
        .user {
            display: flex;
            align-items: center;
            img {
                width: 24px;
                height: 24px;
                margin-right: 5px;
            }
        }
    }
}
</style>
