To use the CurrentMember API, import {currentMember}
from the wix-members-frontend
module:
Note: The APIs in CurrentMember
are only partially functional when previewing your site. View a published version of your site to see their complete functionality.