// 'use client';
import { I18nProvider, getServerI18n } from "@/i18n";
import React, { Suspense, useCallback, useState } from "react";
import { Typography } from "@mui/material";
import CreateUser from "@/components/CreateUser";

interface CreateCustomInputs {
  projectCode: string;
  projectName: string;
}

// const Title = ["title1", "title2"];

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

  return (
    <>
      <Typography variant="h4">{t("Create User")}</Typography>
      <I18nProvider namespaces={["user","navigation","common"]}>
        <Suspense fallback={<CreateUser.Loading />}>
          <CreateUser />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default CreateStaffPage;
