<template>
  <div class="tool-bar-ri">
    <div class="header-icon">
      <AssemblySize />
      <SearchMenu />
      <ThemeSetting />
      <Fullscreen />
    </div>
    <span class="nickname">{{ nickname }}</span>
    <Avatar />
  </div>
</template>

<script setup lang="ts">
import { useUserStore } from '@/stores/modules/user'

const userStore = useUserStore()
const nickname = computed(() => userStore.nickname)
</script>

<style scoped lang="scss">
.tool-bar-ri {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 25px;
  .header-icon {
    display: flex;
    align-items: center;
    & > * {
      margin-left: 21px;
      color: var(--el-header-text-color);
    }
  }
  .nickname {
    margin: 0 20px;
    font-size: 15px;
    color: var(--el-header-text-color);
  }
}
</style>
