FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
802 B

  1. import { Metadata } from "next";
  2. import { getServerI18n, I18nProvider } from "@/i18n";
  3. import PageTitleBar from "@/components/PageTitleBar";
  4. import BomWeightingTabs from "@/components/BomWeightingTabs";
  5. import { fetchBomWeightingScores } from "@/app/api/settings/bomWeighting";
  6. export const metadata: Metadata = {
  7. title: "BOM Weighting Score",
  8. };
  9. const BomWeightingScorePage: React.FC = async () => {
  10. const { t } = await getServerI18n("common");
  11. const bomWeightingScores = await fetchBomWeightingScores();
  12. return (
  13. <>
  14. <PageTitleBar title={t("BOM Weighting Score List")} className="mb-4" />
  15. <I18nProvider namespaces={["common"]}>
  16. <BomWeightingTabs bomWeightingScores={bomWeightingScores} />
  17. </I18nProvider>
  18. </>
  19. );
  20. };
  21. export default BomWeightingScorePage;