Repository URL to install this package:
|
Version:
2.0.2 ▾
|
"use strict";
var __importDefault = this && this.__importDefault || function (mod) {
return mod && mod.__esModule ? mod : {
"default": mod
};
};
Object.defineProperty(exports, "__esModule", {
value: true
});
const react_1 = __importDefault(require("react"));
const SectionList_1 = __importDefault(require("../SectionList"));
const fixture_1 = require("./fixture");
const styled_1 = require("./styled");
/**
* replacing the text as link
*/
const renderItemAsLink = item => {
return react_1.default.createElement(styled_1.StyledLink, {
key: item,
to: item.href
}, item.label);
};
class SectionLinkList extends react_1.default.PureComponent {
render() {
return react_1.default.createElement(SectionList_1.default, Object.assign({}, this.props));
}
}
SectionLinkList.defaultProps = {
className: '',
list: fixture_1.SectionLinkListData,
title: fixture_1.SectionLinkListTitle,
renderItem: renderItemAsLink
};
exports.SectionLinkList = SectionLinkList;
exports.default = SectionLinkList; //# sourceMappingURL=SectionLinkList.js.map