-
Notifications
You must be signed in to change notification settings - Fork 30
/
addtoany.jsx
45 lines (42 loc) · 1.3 KB
/
addtoany.jsx
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
/**
* AddToAny share buttons JSX component.
* @module view/share/addtoany
*/
const { Component, Fragment } = require('inferno');
const { cacheComponent } = require('../../util/cache');
/**
* AddToAny share buttons JSX component.
*
* @see https://www.addtoany.com/buttons/
* @example
* <AddToAny />
*/
class AddToAny extends Component {
render() {
return <Fragment>
<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_telegram"></a>
<a class="a2a_button_whatsapp"></a>
<a class="a2a_button_reddit"></a>
</div>
<script src="https://static.addtoany.com/menu/page.js" defer={true}></script>
</Fragment>;
}
}
/**
* Cacheable AddToAny share buttons JSX component.
* <p>
* This class is supposed to be used in combination with the <code>locals</code> hexo filter
* ({@link module:hexo/filter/locals}).
*
* @see module:util/cache.cacheComponent
* @example
* <AddToAny.Cacheable />
*/
AddToAny.Cacheable = cacheComponent(AddToAny, 'share.addtoany', props => {
return {};
});
module.exports = AddToAny;