1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00
vault-frontend/src/store/photoSwipe/PhotoSwipeStore.tsx
2022-01-04 20:30:23 +07:00

16 lines
320 B
TypeScript

import { makeAutoObservable } from 'mobx';
import { IFile } from '~/redux/types';
export class PhotoSwipeStore {
images: IFile[] = [];
index: number = 0;
constructor() {
makeAutoObservable(this);
}
setData = (images: IFile[], index: number) => {
this.images = images;
this.index = index;
};
}