Skip to content

Instantly share code, notes, and snippets.

@cborodescu
Last active February 15, 2022 12:55
Show Gist options
  • Save cborodescu/991247384affda7aa25adb32d98e8f41 to your computer and use it in GitHub Desktop.
Save cborodescu/991247384affda7aa25adb32d98e8f41 to your computer and use it in GitHub Desktop.
function Recommendations({ cartValue }) {
const { nextCartValue } = useNextCartValue();
return (
// Products with prices that do not exceed ${nextCartValue}
);
}
function App({ api }) {
const nextCartValue = api.getNextCartValue();
return (
<UserIntentGraphProvider
userIntentGraphClient={userIntentGraphClient}
user={api.getUser()}
>
<Recommendations nextCartValue={nextCartValue} />
</UserIntentGraphProvider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment