import type { FormattedAutoQuote } from "@hooks/apis/common/quote/types";
import { SendNativeTransaction } from "./SendNativeTransaction";
import { SignOrder } from "./SignOrder";

export const AutoFlow = ({ data }: { data: FormattedAutoQuote }) => {
	if (!data) return;

	const { userOp } = data;
	if (userOp === "tx") return <SendNativeTransaction quoteData={data} />;

	return <SignOrder quoteData={data} disabled={false} />;
};
