mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
16 lines
320 B
TypeScript
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;
|
|
};
|
|
}
|