lbry-desktop/ui/js/component/linkTransaction/view.jsx
2017-08-29 14:40:30 -04:00

14 lines
345 B
JavaScript

import React from "react";
import Link from "component/link";
const LinkTransaction = props => {
const { id } = props;
const linkProps = Object.assign({}, props);
linkProps.href = "https://explorer.lbry.io/#!/transaction/" + id;
linkProps.label = id.substr(0, 7);
return <Link {...linkProps} />;
};
export default LinkTransaction;