usePageValues

Using the usePageValues hook, you can access (get and set) the page meta values inside your bricks.

For example, you can render the creation date of a page or set the meta title equal to a visual edited heading.

The values you can access are:

{
id: string
type: string
name: string
slug: string
meta: {
title?: string
description?: string
language?: string
featuredImage?: string
}
authorId?: string
author: Author
invalidBlocksTypes?: string[]
status: PageStatus
isLocked: boolean
tags: string[]
createdAt: string
publishedAt?: string
}

See usePageValues documentation