@shopgate/engage
Version:
Shopgate's ENGAGE library.
8 lines (7 loc) • 350 B
JavaScript
import React from 'react';
import { BackInStockSubscriptionsProviderContext } from '@shopgate/engage/back-in-stock/providers';
/**
* Gives access to the values which the context BackInStockSubscriptionsProvider provide
* @returns {JSX}
*/
export const useBackInStockSubscriptions = () => React.useContext(BackInStockSubscriptionsProviderContext);