'use strict';
const React = require('react');
const icon = require('./GitHub-Mark-64px.png');
const Preview = require('./preview');

const githubPlugin = ({term, display, actions}) => {
  display({
    id: 'github',
    icon,
    title: `Search github for ${term}`,
    subtitle: `You entered ${term}`,
    getPreview: () => <Preview term={term} />
  })
};

module.exports = {
  fn: githubPlugin,
  name: 'Search on Github',
  icon
};

'use strict';
const React = require('react');
const icon = require('./GitHub-Mark-64px.png');
const Preview = require('./preview');

const githubPlugin = ({term, display, actions}) => {
  display({
    id: 'github',
    icon,
    order: 11,
    title: `Search github for ${term}`,
    subtitle: `You entered ${term}`,
    getPreview: () => <Preview term={term} />
  })
};

module.exports = {
  fn: githubPlugin,
  name: 'Search on Github',
  icon
};

Update to ensure plugin searches on full user input
Update to ensure plugin searches on full user input
