Files
front/src/app/state/gorodar.actions.ts
T
2026-09-29 01:55:20 +03:00

14 lines
497 B
TypeScript

import { createActionGroup, emptyProps, props } from '@ngrx/store';
export const GorodarActions = createActionGroup({
source: 'Gorodar',
events: {
'Take Photo': props<{ landmarkId: string }>(),
'Photo Captured': props<{ landmarkId: string; photo: string }>(),
'Photo Cancelled': emptyProps(),
'Claim Step Changed': props<{ step: number }>(),
'Claim Completed': props<{ landmarkId: string; photo: string; collectedAt: string }>(),
'Claim Reset': emptyProps(),
},
});