<CustomerProvider>to avoid passing the
customerprop manually. The provider manage the lifecycle of a
Customerinstance. It accepts all the same props as the
Customerclass options, and calls
initon the first render, and provides Context to any consumer for updates.
customer, we provide:
<CustomerProvider>also handles triggering re-renders when
customer.setTeamresolves to the new team.
<PlanSelect>displays available plans to a customer.
<ManageTeam>gives customer ability to invite teammates.
<ViewInvoices>shows a table of customer's past invoices
<PaymentMethods>shows customer's stored payment methods and gives customer ability to create and delete payment methods.
<PricingPlans>displays your plans in a public setting, e.g. a landing page's pricing page. Requires a
redirectUrlpassed in as well.