9s-fe-core
Version:
Core functionalities for authentication, configuration, and repository management.
15 lines (14 loc) • 869 B
JavaScript
;
'use client';
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientAuthProvider = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const AuthProvider_1 = __importDefault(require("./AuthProvider"));
const providers_1 = require("../providers");
const ClientAuthProvider = ({ children, loginPath = '/sign-in', defaultProtectedPath = '/', }) => {
return ((0, jsx_runtime_1.jsx)(providers_1.FirebaseProvider, { children: (0, jsx_runtime_1.jsx)(AuthProvider_1.default, { loginPath: loginPath, defaultProtectedPath: defaultProtectedPath, children: (0, jsx_runtime_1.jsx)(providers_1.FeatureProvider, { children: children }) }) }));
};
exports.ClientAuthProvider = ClientAuthProvider;