@portabletext/editor
Version:
Portable Text Editor made in React
14 lines (12 loc) • 377 B
text/typescript
import type {PortableTextBlock} from '@sanity/types'
import type {EditorSelector} from '../editor/editor-selector'
import {getSelectedValue} from './selector.get-selected-value'
/**
* @public
* @deprecated Renamed to `getSelectedValue`.
*/
export const getSelectedSlice: EditorSelector<Array<PortableTextBlock>> = (
snapshot,
) => {
return getSelectedValue(snapshot)
}