v.1.0.0. initial push of license-lib
This commit is contained in:
11
nextjs/withLicense.js
Normal file
11
nextjs/withLicense.js
Normal file
@ -0,0 +1,11 @@
|
||||
// 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;
|
Reference in New Issue
Block a user