import React from "react";
import style from "./payment.module.css";

const CheckoutPayment = (props) => {
  const onBackClicked = () => {
    props.onBackClicked("payment");
  };
  return (
    <React.Fragment>
      <div className={style.section_data}>
        <p>Payment</p>
      </div>
      <div className={style.option_button}>
        <button
          type="button"
          className={`secondary-btn ${style.secondary_btn}`}
          onClick={() => onBackClicked()}
        >
          Back
        </button>
      </div>
    </React.Fragment>
  );
};

export default CheckoutPayment;
