# editor (/themes/sdk/reference/editor)

```ts
import { … } from '@poltura/theme-sdk/editor';
```

## [Hooks](/themes/sdk/reference/editor/hooks) [#hooks]

| Name | What it is |
| --- | --- |
| [`useIsEditing`](/themes/sdk/reference/editor/hooks#useisediting) | Whether the page is drawn inside the customizer canvas. |
| [`usePreviewScenario`](/themes/sdk/reference/editor/hooks#usepreviewscenario) | The choice the customizer's Data picker made for a preview domain. |

## [Parts](/themes/sdk/reference/editor/parts) [#parts]

| Name | What it is |
| --- | --- |
| [`SectionDropArea`](/themes/sdk/reference/editor/parts#sectiondroparea) | The editor's drop area for a section with no elements yet, where the merchant adds the first one; nothing outside the editor. |

## [Definers](/themes/sdk/reference/editor/definers) [#definers]

| Name | What it is |
| --- | --- |
| [`definePreviewScenarios`](/themes/sdk/reference/editor/definers#definepreviewscenarios) | Declares the theme's own preview scenarios; default-export the result from `src/preview-scenarios.ts`. |

## [Types](/themes/sdk/reference/editor/types) [#types]

| Name | What it is |
| --- | --- |
| [`PreviewScenarioOption`](/themes/sdk/reference/editor/types#previewscenariooption) | One choice of a preview scenario, such as "Empty" for a cart. |
| [`PreviewScenarioDomain`](/themes/sdk/reference/editor/types#previewscenariodomain) | A state the customizer can preview a component in, such as reviews present or absent. |
| [`PreviewScenarios`](/themes/sdk/reference/editor/types#previewscenarios) | The preview scenarios a theme declares in `src/preview-scenarios.ts`. |

<AnchorRedirect to={{"hooks":"/themes/sdk/reference/editor/hooks","useisediting":"/themes/sdk/reference/editor/hooks","usepreviewscenario":"/themes/sdk/reference/editor/hooks","parts":"/themes/sdk/reference/editor/parts","sectiondroparea":"/themes/sdk/reference/editor/parts","definers":"/themes/sdk/reference/editor/definers","definepreviewscenarios":"/themes/sdk/reference/editor/definers","types":"/themes/sdk/reference/editor/types","previewscenariooption":"/themes/sdk/reference/editor/types","previewscenariodomain":"/themes/sdk/reference/editor/types","previewscenarios":"/themes/sdk/reference/editor/types"}} />
