<template>
  <div class="header">
    <div class="header-left">
      <img class="header-logo-img" src="../../assets/logo.png" />

      <span>音频标注检索</span>
    </div>
    <div class="header-right">
      <a-space>
        <BtnSearch class="header-right-item" />
        <div class="header-right-profile">
          <span>{{ currentUser.name }}</span>
        </div>
      </a-space>
    </div>
  </div>
</template>

<script setup>
import { useCurrentUserStore } from '../../base/store/use-current-user';

import BtnSearch from './header-btns/BtnSearch.vue';

const currentUser = useCurrentUserStore();
</script>

<style lang="css" scoped>
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 60px;
  background-color: var(--color-bg-1);
}

.header-left {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--color-text-1);
  font-size: 18px;
  font-weight: bold;
}

.header-logo-img {
  width: 36px;
  margin-right: 5px;
}

.header-center {
  flex-grow: 1;

  padding-left: 15px;
  padding-right: 15px;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  padding-right: 15px;
}

.header-right-item {
  color: var(--color-text-2);
  width: 30px;
  height: 30px;
  border-radius: 20px;
  border: solid 1px var(--color-border-2);

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
}

.header-right-profile {
}
</style>
