sanity-plugin-iframe-pane
5.0.385.0.39
README.md~
README.mdModified+2−2
Index: package/README.md
===================================================================
--- package/README.md
+++ package/README.md
@@ -43,12 +43,12 @@
```ts
// ./src/defaultDocumentNode.ts
-import {type DefaultDocumentNodeResolver} from 'sanity/structure'
import {urlSearchParamPreviewPerspective} from '@sanity/preview-url-secret/constants'
-import {Iframe, UrlResolver} from 'sanity-plugin-iframe-pane'
import {type SanityDocument} from 'sanity'
+import {Iframe, UrlResolver} from 'sanity-plugin-iframe-pane'
+import {type DefaultDocumentNodeResolver} from 'sanity/structure'
// Customise this function to show the correct URL based on the current document and the current studio perspective
const getPreviewUrl: UrlResolver = (doc, perspective) => {
return doc?.slug?.current