import React from "react";

import { getInitialValues, getValidationSchema } from "../../formUtil";
import FormPage from "../../../../Layout/Dashboard/FormPage";
import CreateForm from "./Form";
import { FaArrowRight } from "react-icons/fa";

const CreateProduct = () => {
  const handleSubmit = (values: any) => {
    // mutate({ ...values });
  };

  return (
    <div className="FormPage student_time_detalis">
      <header className="single_student_header">
        <FaArrowRight /> نشاطات الطالب <span>( آية العمري ) </span>
      </header>
      <main className="FormCard">
        <header> تفاصيل الطالب </header>
        <FormPage
          handleSubmit={handleSubmit}
          initialValues={getInitialValues([])}
          validationSchema={getValidationSchema}
          ButtonName="حفظ"
        >
          <CreateForm />
        </FormPage>
      </main>
    </div>
  );
};

export default CreateProduct;
