import React from "react";

export default function FormAction({
  handleSubmit,
  type = "Button",
  action = "submit",
  text,
}: any) {
  return (
    <>
      {type === "Button" ? (
        <button
        // type={action}
          type='button'
          className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-[#FF332B] hover:bg-[#FF332B] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[#FF332B] mt-10"
          onClick={handleSubmit}
        >
          {text}
        </button>
      ) : 
        <></>
      }
    </>
  );
}
