Browse
For agents
About
Vimeography: Vimeo Video Gallery WordPress Plugin
/
2.2
Vimeography: Vimeo Video Gallery WordPress Plugin
v2.2
Switch version
2.4.9
2.4.8
trunk
0.5.1
0.5.2
0.5.3
0.5.4
0.5.5
0.5.6
0.5.7
0.6
0.6.1
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.8.1
0.6.9
0.6.9.1
0.6.9.2
0.7
0.8
All 103 releases
Overview
Code
vimeography
/
lib
/
admin
/
app
/
src
/
context
/
Gallery.ts
Gallery.ts
in Vimeography: Vimeo Video Gallery WordPress Plugin 2.2, at lib/admin/app/src/context/Gallery.ts
23 lines
414 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
import
*
as
React
from
"
react
"
;
2
import
{
GalleryState
}
from
"
../providers/Gallery
"
;
3
4
type
GalleryContext
=
{
5
isLoading
:
boolean
;
6
error
:
Error
;
7
data
:
GalleryState
;
8
state
:
GalleryState
;
9
dispatch
:
any
;
10
}
;
11
12
const
ctx
:
GalleryContext
=
{
13
isLoading
:
true
,
14
error
:
null
,
15
data
:
null
,
16
state
:
null
,
17
dispatch
:
(
)
=>
{
}
,
18
}
;
19
20
const
GalleryContext
=
React
.
createContext
(
ctx
)
;
21
22
export
default
GalleryContext
;
23