// 'use client';
import { I18nProvider, getServerI18n } from "@/i18n";
import CustomInputForm from "@/components/CustomInputForm";
import Check from "@mui/icons-material/Check";
import Close from "@mui/icons-material/Close";
import Button from "@mui/material/Button";
import Stack from "@mui/material/Stack";
import Tab from "@mui/material/Tab";
import Tabs, { TabsProps } from "@mui/material/Tabs";
import { useRouter } from "next/navigation";
import React, { useCallback, useState } from "react";
import { useTranslation } from "react-i18next";
import { Task, TaskTemplate } from "@/app/api/tasks";
import {
  FieldErrors,
  FormProvider,
  SubmitErrorHandler,
  SubmitHandler,
  useForm,
} from "react-hook-form";
import { CreateProjectInputs, saveProject } from "@/app/api/projects/actions";
import { Error } from "@mui/icons-material";
import { ProjectCategory } from "@/app/api/projects";
import { Grid, Typography } from "@mui/material";
import CreateStaff from "@/components/CreateStaff";

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

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

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

  return (
    <>
      <Typography variant="h4">{t("Create Staff")}</Typography>
      <I18nProvider namespaces={["staff"]}>
        <CreateStaff/>
      </I18nProvider>
    </>
  );
};

export default CreateStaffPage;
