Intentando crear un tema para acceder a las publicaciones más recientes, ¿alguien puede decirme cómo puedo acceder al estado de las publicaciones que se están haciendo clic?

I am trying to read the repository of discourse in order to develop a plugin, I am failing to understand on how to access the or create a state or array which stores the id of last 3 clicked posts by user, so it can displayed as a list on the top of the forum.

Can someone guide me on which file will find the component being used to display the posts