summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-fontsettings/src/actions/font.js
blob: 903470179a4218339a8ed960b9ff72a8d3a7db2e (plain)
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

const TYPES = {
    INCREASE: 'font/increase',
    DECREASE: 'font/decrease',
    RESET:    'font/reset'
};

function increase() {
    return { type: TYPES.INCREASE };
}

function decrease() {
    return { type: TYPES.DECREASE };
}

function reset() {
    return { type: TYPES.RESET };
}

module.exports = {
    TYPES,
    increase,
    decrease,
    reset
};