import PHXFuncGetCookieSession from './getCookieSession';
export default function PHXFuncGetLoggedInfo() {
    const cookieSession = PHXFuncGetCookieSession();
    const userInfo = cookieSession === null || cookieSession === void 0 ? void 0 : cookieSession.user_info;
    if (!userInfo)
        return null;
    const listRolesOfUser = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.user_roles) || [];
    const isMasterRole = listRolesOfUser.some((roleItem) => roleItem.role.is_master_role);
    return { ...userInfo, isMasterRole };
}
//# sourceMappingURL=getLoginInfo.js.map