UNPKG

@portabletext/editor

Version:

Portable Text Editor made in React

12 lines (10 loc) 256 B
import type {PortableTextBlock} from '@sanity/types' import type {EditorSelector} from '../editor/editor-selector' /** * @public */ export const getValue: EditorSelector<Array<PortableTextBlock>> = ( snapshot, ) => { return snapshot.context.value }