Repository URL to install this package:
|
Version:
2.1.14 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const SectionList_1 = tslib_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;