summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-sharing/src/optionsShape.js
blob: dd5101635c849b5a22dd07389ca4c28c6a73130e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;