# Copy Page Link

Page-heading control for copying the current page's generated markdown.

## Data Source

* [`useCopyPageMarkdown`](/reference/runtime-api#usecopypagemarkdown)
* `themeConfig.text`

## Behavior

* omitted when page markdown copying is unavailable
* exposes idle, success, and error states
* disables interaction until the client is ready
* updates its icon for each copy state
* uses the localized theme text labels for button content

## State Labels

* idle: `copyPage`
* success: `copiedPage`
* error: `copyFailedPage`