RequirePermissionProps
Home > @backstage/plugin-permission-react
> RequirePermissionProps
Properties for RequirePermission()
Signature:
export type RequirePermissionProps = ({
permission: Exclude<Permission, ResourcePermission>;
resourceRef?: never;
} | {
permission: ResourcePermission;
resourceRef: string | undefined;
}) & {
errorPage?: ReactNode;
children: ReactNode;
};
References: Permission, ResourcePermission