11
common/resources/client/uploads/preview/file-preview-context.ts
Executable file
11
common/resources/client/uploads/preview/file-preview-context.ts
Executable file
@@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
import {FileEntry} from '../file-entry';
|
||||
|
||||
export interface FilePreviewContextValue {
|
||||
entries: FileEntry[];
|
||||
activeIndex: number;
|
||||
}
|
||||
|
||||
export const FilePreviewContext = React.createContext<FilePreviewContextValue>(
|
||||
null!
|
||||
);
|
||||
Reference in New Issue
Block a user