<script setup lang="ts">
import { computed } from "vue";
import { useRoute } from "vue-router";

import { findWorkspace } from "../workspaceRegistry";

const route = useRoute();
const title = computed(() => findWorkspace(String(route.params.workspace ?? ""))?.title ?? "系统管理");
</script>

<template>
  <footer class="statusbar">
    <span>{{ title }}</span>
    <span class="statusbar-center">股市有风险，投资需谨慎</span>
    <span class="statusbar-right">等待行情数据</span>
  </footer>
</template>
