testing-package-xdsfdsfsc 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of testing-package-xdsfdsfsc might be problematic. Click here for more details.
|
@@ -12,6 +12,7 @@ import React, { type ReactNode } from "react";
|
|
|
12
12
|
import { ClientEntitlementProvider } from "./runtime-check-ui-example";
|
|
13
13
|
|
|
14
14
|
async function getEntitlement() {
|
|
15
|
+
// entitlement-check.js is in package root; this file is in examples/
|
|
15
16
|
const mod = await import("../entitlement-check.js");
|
|
16
17
|
return mod.getEntitlement();
|
|
17
18
|
}
|
|
@@ -19,6 +20,8 @@ async function getEntitlement() {
|
|
|
19
20
|
export async function EntitlementProvider({ children }: { children: ReactNode }) {
|
|
20
21
|
const { allowed } = await getEntitlement();
|
|
21
22
|
return (
|
|
22
|
-
<ClientEntitlementProvider allowed={allowed}
|
|
23
|
+
<ClientEntitlementProvider allowed={allowed}>
|
|
24
|
+
{children}
|
|
25
|
+
</ClientEntitlementProvider>
|
|
23
26
|
);
|
|
24
27
|
}
|