---
export type Props = {
  value?: string
}

const { value } = Astro.props

const canonical = value ?? Astro.url.href
---

<link rel="canonical" href={canonical} />
