Files
Fluxup_PAP/node_modules/expo-router/build/views/Protected.js
2026-03-10 16:18:05 +00:00

11 lines
500 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Protected = void 0;
exports.isProtectedReactElement = isProtectedReactElement;
const react_1 = require("react");
const primitives_1 = require("../primitives");
exports.Protected = primitives_1.Group;
function isProtectedReactElement(child) {
return Boolean((0, react_1.isValidElement)(child) && child.type === primitives_1.Group && child.props && 'guard' in child.props);
}
//# sourceMappingURL=Protected.js.map