@qbcart/eshop-inventory-hooks
Version:
Types to hooks for querying inventory data from LocalDB.
16 lines (15 loc) • 566 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.
*/
import type InventoryBanner from '@qbcart/types/eshop/inventory-banner';
/**
* Hook for retrieving inventory banners info from LocalDB.
* @param {string} path - Path that banners belong to.
* @return An array of inventory banners info to be used.
*/
declare const useInventoryBanners: (path: string) => InventoryBanner[];
export default useInventoryBanners;