summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-sharing/src/shapes/options.js
blob: 885feb67f1efad961fab89a3191e8ed98e5620c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const {
    bool,
    arrayOf,
    oneOf,
    shape
} = require('gitbook-core').React.PropTypes;
const { ALL } = require('../SITES');

const optionsShape = shape({
    facebook: bool,
    twitter: bool,
    google: bool,
    weibo: bool,
    instapaper: bool,
    vk: bool,
    all: arrayOf(oneOf(ALL)).isRequired
});

module.exports = optionsShape;