mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 00:17:15 +00:00
35 lines
833 B
JavaScript
35 lines
833 B
JavaScript
![]() |
import React from 'react';
|
||
|
import pluginPkg from '../../package.json';
|
||
|
import pluginId from './pluginId';
|
||
|
import App from './containers/App';
|
||
|
import Initializer from './containers/Initializer';
|
||
|
import lifecycles from './lifecycles';
|
||
|
import trads from './translations';
|
||
|
|
||
|
const pluginDescription = pluginPkg.strapi.description || pluginPkg.description;
|
||
|
|
||
|
function Comp(props) {
|
||
|
return <App {...props} />;
|
||
|
}
|
||
|
|
||
|
const plugin = {
|
||
|
blockerComponent: null,
|
||
|
blockerComponentProps: {},
|
||
|
description: pluginDescription,
|
||
|
icon: pluginPkg.strapi.icon,
|
||
|
id: pluginId,
|
||
|
initializer: Initializer,
|
||
|
injectedComponents: [],
|
||
|
isReady: false,
|
||
|
layout: null,
|
||
|
lifecycles,
|
||
|
leftMenuLinks: [],
|
||
|
leftMenuSections: [],
|
||
|
mainComponent: Comp,
|
||
|
name: pluginPkg.strapi.name,
|
||
|
preventComponentRendering: false,
|
||
|
trads,
|
||
|
};
|
||
|
|
||
|
export default plugin;
|