import { Metadata } from "next";
import { getServerI18n, I18nProvider } from "@/i18n";
import PageTitleBar from "@/components/PageTitleBar";
import { MasterDataIssuesTabs } from "@/components/MasterDataIssues";

export const metadata: Metadata = {
  title: "Master Data Issues",
};

const MasterDataIssuesPage: React.FC = async () => {
  const { t } = await getServerI18n("masterDataIssue");

  return (
    <>
      <PageTitleBar title={t("masterDataIssue_pageTitle")} className="mb-4" />
      <I18nProvider namespaces={["masterDataIssue","navigation","common"]}>
        <MasterDataIssuesTabs />
      </I18nProvider>
    </>
  );
};

export default MasterDataIssuesPage;
