<template>
  <CommonMarkHeader
    :isSingleStudent="isSingleStudent"
    :clearTasks="clearTasks"
    showScoreBoard
  >
    <span>
      <span class="header-small-text">待复核</span
      ><span class="highlight-text">{{ store.status.totalCount ?? "-" }}</span>
    </span>
  </CommonMarkHeader>
</template>

<script setup lang="ts">
import { store } from "@/store/store";
import { useRoute } from "vue-router";
import { clearInspectedTaskOfLibraryInspect } from "@/api/libraryInspectPage";
import CommonMarkHeader from "@/components/CommonMarkHeader.vue";

const route = useRoute();
let isSingleStudent = !!route.query.studentId;
const { subjectCode, groupNumber } = route.query as {
  subjectCode: string;
  groupNumber: string;
};

let clearTasks = clearInspectedTaskOfLibraryInspect.bind(
  null,
  subjectCode,
  groupNumber
);
</script>
