import { useState } from "react";

export function useCheckout() {
  const [cartItems, setCartItems] = useState<Array<{
    id: string;
    name: string;
    quantity: number;
  }>>([]);

  const handleCheckout = () => {
    console.log("Checking out with items:", cartItems);
  };

  return {
    cartItems,
    setCartItems,
    handleCheckout,
  };
}
