all files / src/ index.js

99.03% Statements 102/103
100% Branches 44/44
95.45% Functions 21/22
91.67% Lines 11/12
28 statements, 13 functions, 23 branches Ignored     
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                                               
/**
 * The exports for the library
 */
 
import React from 'react';
 
import scroller from './scroller';
import anchor from './anchor';
import AnchorElement from './anchor-element';
import ScrollPanel from './scroll-panel';
 
 
function Button(props) {
    return <button {...props} />;
}
 
function Link(props) {
    return <a {...props} />;
}
 
export const AnchorButton = anchor(Button);
export const AnchorLink = anchor(Link);
export { default as AnchorElement } from './anchor-element';
export { default as ScrollPanel } from './scroll-panel';
 
export default {
    scroller,
    anchor,
    AnchorButton,
    AnchorLink,
    AnchorElement,
    ScrollPanel
};