UNPKG

@atlaskit/editor-plugin-annotation

Version:

Annotation plugin for @atlaskit/editor-core

15 lines 330 B
import React from 'react'; // eslint-disable-next-line @repo/internal/react/no-class-components export class AnnotationViewWrapper extends React.PureComponent { componentDidMount() { const { onViewed } = this.props; if (onViewed) { onViewed(); } } render() { return this.props.children; } }