function toProduct(product) {
  return {
    name: product.name,
    id: product.id,
    image: product.variants[0].image,
    startPrice: startPrice(product.variants),
    url: productUrl(product.id),
  };
}
Converts a product object to a formatted product.
@param {Product} product - The product object.
@returns {Product} The formatted product.