---
import * as interfaces from '../../lib/interfaces.ts'
import Mention from './Mention.astro'

export interface Props {
  block: interfaces.Block
}

const { block }: Props = Astro.props

if (!block.LinkToPage) {
  return null
}
---

<p>
  <Mention pageId={block.LinkToPage.PageId} />
</p>
