import { useAddItemsToCart } from './useAddItemsToCart' ; import { AttributeInput } from '../types' ; export function useAddItemToCart ( ) { const addItemsToCart = useAddItemsToCart ( ) ; async function addItemToCart ( variantId , quantity , customAttributes ? ) { const item = [ { variantId , quantity , customAttributes } ] ; return addItemsToCart ( item ) ; } return addItemToCart ; }