27 lines
530 B
TypeScript
27 lines
530 B
TypeScript
export type ClaimStage = 'idle' | 'check' | 'success';
|
|
|
|
export interface ClaimState {
|
|
landmarkId: string | null;
|
|
photo: string | null;
|
|
stage: ClaimStage;
|
|
step: number;
|
|
}
|
|
|
|
export interface ProfileState {
|
|
displayName: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
city: string;
|
|
email: string;
|
|
phone: string;
|
|
joinedLabel: string;
|
|
}
|
|
|
|
export interface GorodarState {
|
|
collectedIds: string[];
|
|
photos: Record<string, string>;
|
|
collectedAt: Record<string, string>;
|
|
claim: ClaimState;
|
|
profile: ProfileState;
|
|
}
|