RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/contexts/ImageGalleryContext.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createContext } from 'react';

export type ImageGalleryContextValue = {
    imageId: string;
    isOpen: boolean;
    onClose: () => void;
};

export const ImageGalleryContext = createContext<ImageGalleryContextValue>({
    imageId: '',
    isOpen: false,
    onClose: () => undefined,
});