basePlugin.tsx 414 B

1234567891011121314151617181920
  1. import Settings from 'sentry/plugins/components/settings';
  2. import type {Organization, Plugin, Project} from 'sentry/types';
  3. type Props = {
  4. organization: Organization;
  5. project: Project;
  6. };
  7. class BasePlugin {
  8. plugin: Plugin;
  9. constructor(data: Plugin) {
  10. this.plugin = data;
  11. }
  12. renderSettings(props: Props) {
  13. return <Settings plugin={this.plugin} {...props} />;
  14. }
  15. }
  16. export default BasePlugin;