12 lines
301 B
JavaScript
12 lines
301 B
JavaScript
// nextjs/withLicense.js
|
|
|
|
import { LicenseProvider } from '../react/LicenseProvider';
|
|
|
|
const withLicense = (Component, { userId, licenseKey }) => (props) => (
|
|
<LicenseProvider userId={userId} licenseKey={licenseKey}>
|
|
<Component {...props} />
|
|
</LicenseProvider>
|
|
);
|
|
|
|
export default withLicense;
|