import { ReactNode } from "react";
import { BuyForm } from "../types";

const Child = ({ children }: { children?: ReactNode | undefined }) => {
  return <>{children}</>;
};

const Provider = ({ children }: { children?: ReactNode | undefined }) => {
  return (
    <BuyForm.Provider mode="onChange">
      <Child>{children}</Child>
    </BuyForm.Provider>
  );
};

export { Provider };
