import React from 'react';
import { BillingProvider, useBillingContext } from '@locai1/billing-react-sdk';
const App = () => (
<BillingProvider authUser={yourAuthUser} authToken={yourAuthToken}>
<YourComponent />
</BillingProvider>
);
const YourComponent = () => {
const { selectedPlan, setSelectedPlan, subscription, setSubscription } = useBillingContext();
return (
<div>
<h1>Selected Plan: {selectedPlan?.name}</h1>
<h2>Subscription Status: {subscription?.status}</h2>
</div>
);
};
export default App;