Backstage
    Preparing search index...
    • Returns a React Router Route which only renders the element when authorized. If unauthorized, the Route will render a NotFoundErrorPage (see @backstage/core-app-api#AppComponents).

      Parameters

      • props: {
            caseSensitive?: boolean;
            children?: ReactNode;
            element?: ReactElement<any, (string | JSXElementConstructor<any>)> | null;
            errorComponent?:
                | ReactElement<any, (string | JSXElementConstructor<any>)>
                | null;
            path?: string;
        } & (
            | { permission: BasicPermission; resourceRef?: undefined }
            | { permission: ResourcePermission; resourceRef: string | undefined }
        )

      Returns Element

      This component no longer works with the most recent version of @backstage/core-app-api and react-router v6, use RequirePermission instead.