| 5 | import { useStore } from './store'; |
| 6 | |
| 7 | export interface ModifiedProps extends Omit<DefaultExtensionsOptions, 'theme'>, Omit<EditorStateConfig, 'doc'> { |
| 8 | value?: EditorStateConfig['doc']; |
| 9 | extensions?: Extension[]; |
| 10 | /** Fired whenever a change occurs to the document. */ |
| 11 | onChange?(value: string, viewUpdate: ViewUpdate): void; |
| 12 | } |
| 13 | |
| 14 | export const Modified = (props: ModifiedProps): JSX.Element | null => { |
| 15 | const { extensions = [], value, selection, onChange, ...otherOption } = props; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…