types.ts 819 B

1234567891011121314151617181920212223242526272829303132
  1. import type {RouteComponentProps} from 'react-router';
  2. import type {
  3. OnboardingRecentCreatedProject,
  4. OnboardingSelectedSDK,
  5. } from 'sentry/types/onboarding';
  6. export type StepData = {
  7. platform?: OnboardingSelectedSDK | null;
  8. };
  9. // Not sure if we need platform info to be passed down
  10. export type StepProps = Pick<
  11. RouteComponentProps<{}, {}>,
  12. 'router' | 'route' | 'location'
  13. > & {
  14. active: boolean;
  15. genSkipOnboardingLink: () => React.ReactNode;
  16. onComplete: (selectedPlatforms?: OnboardingSelectedSDK) => void;
  17. orgId: string;
  18. search: string;
  19. stepIndex: number;
  20. recentCreatedProject?: OnboardingRecentCreatedProject;
  21. };
  22. export type StepDescriptor = {
  23. Component: React.ComponentType<StepProps>;
  24. cornerVariant: 'top-right' | 'top-left';
  25. id: string;
  26. title: string;
  27. hasFooter?: boolean;
  28. };