Shared: Utils: add isHideBannerForUser

This commit is contained in:
Viktor Fomin 2024-02-12 19:00:22 +03:00
parent 3fdd1af74b
commit f3ef4ce95c

View File

@ -46,3 +46,8 @@ export const getConfig = async (campaign: string, standalone: boolean) => {
const res = await fetch(configUrl);
return Promise.resolve(res.json());
};
export const isHideBannerForUser = (userType: string, hideFor: string[]) => {
if (hideFor.includes(userType)) return true;
return false;
};