-
Notifications
You must be signed in to change notification settings - Fork 163
/
globalReferences.js
50 lines (47 loc) · 1.05 KB
/
globalReferences.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import './styles/carousel.scss';
import Icon from 'react-fa';
import imageOne from './static/mona.jpg';
import imageTwo from './static/scream.jpg';
import imageThree from './static/starry-night.jpg';
import thumbnailOne from './static/mona_thumbnail.jpg';
import thumbnailTwo from './static/scream_thumbnail.jpg';
import thumbnailThree from './static/starry-night_thumbnail.jpg';
const {
default: Carousel,
Dots,
slidesToShowPlugin,
infinitePlugin,
clickToChangePlugin,
autoplayPlugin,
rtlPlugin,
centeredPlugin,
slidesToScrollPlugin,
arrowsPlugin,
fastSwipePlugin,
} = (() => {
if (!global.window) {
global.window = {};
}
console.log('connecting with local react-carousel source code');
return require('../../react-carousel/src');
})();
export {
Carousel,
Dots,
slidesToShowPlugin,
infinitePlugin,
clickToChangePlugin,
autoplayPlugin,
rtlPlugin,
centeredPlugin,
slidesToScrollPlugin,
arrowsPlugin,
fastSwipePlugin,
Icon,
imageOne,
imageTwo,
imageThree,
thumbnailOne,
thumbnailTwo,
thumbnailThree,
};