[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [astro](../README) / PreviewTarget

# Interface: PreviewTarget

What a preview renders.

## Properties

### area

> **area**: `string`

The area the draft edits (`area:header`), or null when it edits the page itself.

***

### document

> **document**: `unknown`

The page's document: the draft's when the page is what is edited, else what the store saved (null for none).

***

### pageType

> **pageType**: [`SurfacePageType`](../../index/type-aliases/SurfacePageType)

That surface's page type, when it declares one.

***

### params

> **params**: `Record`\<`string`, `string`\>

The route's parameters for the resource a template previews — `{ handle }`
for a product or collection, `{ slug }` for a category, page or landing
page — or none when the store has none of its kind yet.

***

### surface

> **surface**: `string`

The surface the page renders: the draft's own, or for an area the page it is shown on.
