How do I tell my visual builder if the user has login or not on my frontend next.jsl

Builder content link
Builder.io: Drag and drop page builder and CMS

Builder public api key
fff8e6fa6fbc4f6abf4fb93c03e661f1

What are you trying to accomplish
*
I made a footer in builder and want to know how do I show or hide an element in footer whether the user logged in or not in the site.
Basically I want to send the user data from my nextjs to the builder footer model. So I can easily bind the element according to it.
*

Code stack you are integrating Builder with
e.g. NextJS, react

Hi @anupama.sharmaa,

You can pass data to the Builder component to use in the UIs, including binding data values. All data passed down to the Builder Component is available in Builder action and bindings as state.

<BuilderComponent
model="footer"
data={{isLoggedIn}} >

You can also use targeting to target different pieces of Builder content to different users based on userAttributes.