lbry-desktop/src/renderer/component/common/transaction-link.jsx
2018-04-17 22:04:21 -04:00

18 lines
361 B
JavaScript

// @flow
import React from 'react';
import Button from 'component/button';
type Props = {
id: string,
};
const TransactionLink = (props: Props) => {
const { id } = props;
const href = `https://explorer.lbry.io/tx/${id}`;
const label = id.substr(0, 7);
return <Button button="link" href={href} label={label} />;
};
export default TransactionLink;