PreviewFramePropsinterface
import { PreviewFrameProps } from '@mortar-kit/admin'
interface PreviewFramePropsProperties
url: stringURL of the app route that renders
<PreviewPage>.collection: stringThe edited document's collection, by name.
body: booleanWhether that collection has a body. Without one, the preview ignores stored entries, as the site does.
doc: Docrefresh?: numberBump it after saved content changes (a save, a delete): the preview reloads what bricks loaded.
selected?: string | nullThe selected entry's id, outlined in the preview; null when none (or the document's fields) is selected.
onSelect?: (id: string) => voidAn entry was clicked in the preview.
onLink?: (url: URL) => voidA same-origin link was ⌘/Ctrl-clicked in the preview (others open in a new tab from there).