import CustomerSave from "@/components/CustomerSave";
// import { preloadAllTasks } from "@/app/api/tasks";
import CreateTaskTemplate from "@/components/CreateTaskTemplate";
import { I18nProvider, getServerI18n } from "@/i18n";
import Typography from "@mui/material/Typography";
import { Metadata } from "next";

export const metadata: Metadata = {
  title: "Create Client",
};

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

  return (
    <>
      <Typography variant="h4">{t("Create Customer")}</Typography>
      <I18nProvider namespaces={["customer", "common"]}>
          <CustomerSave />
      </I18nProvider>
    </>
  );
};

export default CreateCustomer;
