Repository URL to install this package:
Version:
0.9.5 ▾
|
"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 fixtures_1 = require("./fixtures");
const SectionList_1 = __importDefault(require("presets/SectionList"));
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: fixtures_1.SectionLinkListData,
title: fixtures_1.SectionLinkListTitle,
renderItem: renderItemAsLink,
};
exports.SectionLinkList = SectionLinkList;
exports.default = SectionLinkList;
//# sourceMappingURL=SectionLinkList.js.map