@bigfishtv/cockpit
Version:
20 lines (16 loc) • 391 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { getComponents } from '../../pluginRegistry';
export function PluginContainer(_ref) {
var id = _ref.id;
return React.createElement(
'div',
null,
getComponents(id).map(function (c) {
return React.createElement(c.component, { key: c.name });
})
);
}
PluginContainer.propTypes = {
id: PropTypes.string
};