import { ArrowRight } from 'lucide-react'
import styles from './CheckoutBackButton.module.css'

interface CheckoutBackButtonProps {
  label: string
  onClick: () => void
}

export function CheckoutBackButton({ label, onClick }: CheckoutBackButtonProps) {
  return (
    <button type="button" className={styles.backBtn} onClick={onClick}>
      <ArrowRight size={16} aria-hidden />
      <span>{label}</span>
    </button>
  )
}
