Quite a few components rely on a context provider and associated hook, but in many cases it may also make sense to allow devs to pass in a prop instead and not rely on setting up a context provider.
For example, <Metafield/> uses useShop(), but only need the locale from it. We could also allow a locale prop and not rely on the useShop() hook in that case.
- [ ] Metafield
- [ ] useMoney
- [x] ShopPayButton
Quite a few components rely on a context provider and associated hook, but in many cases it may also make sense to allow devs to pass in a prop instead and not rely on setting up a context provider.
For example,
<Metafield/>usesuseShop(), but only need thelocalefrom it. We could also allow alocaleprop and not rely on theuseShop()hook in that case.