# All files / composer/utils/draft-js-custom-plugins/prepopulated-autocomplete-mention index.js

50% Statements 1/2
100% Branches 0/0
0% Functions 0/1
100% Lines 1/1

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17

    7x

     import PrepopulatedMention from './PrepopulatedMention';
    import prepopulatedMentionStrategy from './prepopulatedMentionStrategy';
    import prepopulatedMentionEntityStrategy from './prepopulatedMentionEntityStrategy';
    import addPrepopulatedMention from './modifiers/addPrepopulatedMention';

    const createPrepopulatedMentionPlugin = () => ({
      decorators: [
        {
          strategy: prepopulatedMentionEntityStrategy,
          component: PrepopulatedMention,
        },
      ],
    });

    export default createPrepopulatedMentionPlugin;
    export { prepopulatedMentionStrategy, addPrepopulatedMention };