@qbcart/eshop-cart-hooks
Version:
Type to hooks for manipulating the shopping cart across the QBCart EShop ecosystem.
15 lines (14 loc) • 580 B
TypeScript
/**
* @license
* Copyright (c) 2021 QBCart Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source repo.
*/
/**
* Hook for removing a request for the remove item modal.
* @param {string} id - Id of item that remove item modal showed which is the primary key of the original request.
* @return A function for removing a request for the remove item modal.
*/
declare const useDismissRemoveItemModal: () => (id: string) => Promise<boolean>;
export default useDismissRemoveItemModal;