useProduct

The useProduct hook returns the product object of the nearest ProductProvider. It must be a descendent of a ProductProvider component.