123456789101112131415161718192021222324252627282930313233 |
- import type {RouteComponentProps} from 'react-router';
- export type RelocationState = {
- orgSlugs: string;
- promoCode: string;
- regionUrl: string;
- };
- export type MaybeUpdateRelocationState = {
- orgSlugs?: string;
- promoCode?: string;
- regionUrl?: string;
- };
- export type StepProps = Pick<
- RouteComponentProps<{}, {}>,
- 'router' | 'route' | 'location'
- > & {
- active: boolean;
- existingRelocationUUID: string;
- onComplete: (uuid?: string) => void;
- onUpdateRelocationState: (MaybeUpdateRelocationState) => void;
- publicKeys: Map<string, string>;
- relocationState: RelocationState;
- stepIndex: number;
- };
- export type StepDescriptor = {
- Component: React.ComponentType<StepProps>;
- cornerVariant: 'top-right' | 'top-left';
- id: string;
- title: string;
- };
|