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

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

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

  return (
    <>
      <Typography variant="h4">{t("Create User Group")}</Typography>
      <I18nProvider namespaces={["group"]}>
        <CreateGroup />
      </I18nProvider>
    </>
  );
};

export default CreateStaff;
