import CreateCompany from "@/components/CreateCompany";
import { I18nProvider, getServerI18n } from "@/i18n";
import Typography from "@mui/material/Typography";
import { Metadata } from "next";

export const metadata: Metadata = {
    title: "Create Comapny",
  };
  
const Companys: React.FC = async () => {
    const { t } = await getServerI18n("companys");
    
    return(
    <>
      <Typography variant="h4">{t("Create Company")}</Typography>
      <I18nProvider namespaces={["companys"]}>
        <CreateCompany isEdit={false} />
      </I18nProvider>
    </>
    )

}

export default Companys;