basePlugin.tsx 516 B

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