mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-10 11:20:49 +00:00
16 lines
450 B
TypeScript
16 lines
450 B
TypeScript
// Copyright (C) 2017-2026 Smart code 203358507
|
|
|
|
import { createContext } from 'react';
|
|
|
|
export type FullscreenContextValue = readonly [
|
|
fullscreen: boolean,
|
|
requestFullscreen: () => Promise<void> | void,
|
|
exitFullscreen: () => void,
|
|
toggleFullscreen: () => void,
|
|
];
|
|
|
|
const FullscreenContext = createContext<FullscreenContextValue | null>(null);
|
|
|
|
FullscreenContext.displayName = 'FullscreenContext';
|
|
|
|
export default FullscreenContext;
|