@eristack/policy-ui
Version:
RBAC and PBAC gate components with v0 allowed override
11 lines • 512 B
TypeScript
import type { ReactNode } from "react";
export type BusinessPolicyGateProps = {
/** PBAC policy id — wired when `@eristack/pbac/react` is connected. */
policyId?: string;
/** v0 override when hooks are not mounted. */
allowed?: boolean;
children: ReactNode;
fallback?: ReactNode;
};
export declare function BusinessPolicyGate({ policyId: _policyId, allowed, children, fallback, }: BusinessPolicyGateProps): import("react").JSX.Element;
//# sourceMappingURL=business-policy-gate.d.ts.map