"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useSignedInMember = void 0;
const react_1 = require("react");
const contexts_1 = require("../contexts");
const useSignedInMember = () => {
    const { isExternalMemberHotel, memberOnlyModalPromotion, signedInUser } = (0, react_1.useContext)(contexts_1.CompanyContext);
    const memberNumber = signedInUser === null || signedInUser === void 0 ? void 0 : signedInUser.memberNumber;
    const memberProvider = signedInUser === null || signedInUser === void 0 ? void 0 : signedInUser.memberProvider;
    return {
        signedInUser,
        memberNumber: memberNumber && memberProvider ? `${memberNumber}::${memberProvider}` : memberNumber,
        memberProvider,
        isExternalMemberHotel,
        memberOnlyModalPromotion,
    };
};
exports.useSignedInMember = useSignedInMember;
//# sourceMappingURL=useSignedInMember.js.map