@arcteryx/components-click-and-collect
Components for click and collect; StoreAddress, StoreBlock, StoreBlockFullDetails, StoreFinder, StoreFinderSearch, StoreInventory, StoreName.
Install
npm install --save @arcteryx/components-click-and-collect
Usage
import { StoreFinder } from "@arcteryx/components-click-and-collect";
import { useLocation } from "@arcteryx/js-geolocation";
const Page = () => {
const { market, country, language } = useSiteContext();
const [location, setLocation] = useState(useLocation);
const [store, setStore] = useState(null);
const magentoUrl = "https://mcstaging2.arcteryx.com/graphql";
return (
<>
<StoreFinderSearch magentoUrl={magentoUrl} location={geoLocation} setNearbyStore={setStore}/>
</>
);
};