Problem with a custom block that contains a structure field

I have a problem with a custom block containing a field structure. I followed the Block factory cookbook.
I added this custom block in the list of available blocks in a page that uses the layout-builder.
I created the snippets to display it.
I can add the custom block, introduce elements.
The problem is that the front-end loop that should display the elements of the structure does not display anything.
If I try
the page displays
KirbyCms\Structure Object
Any idea what the problem is?

In a block snippet, you have to use $block not $page.

ok thank you, it was so simple :grinning: