roles

import wixUsers from 'wix-users';

$w.onReady(() => {

setupPage();

wixUsers.onLogin((user) => {

setupPage();

});

});

 

export function setupPage() {

if (wixUsers.currentUser.loggedIn) {

$w("#button34").show();

$w("#button35").show();

} else {

$w("#button34").hide();

$w("#button35").hide();

}

}