2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import Button from 'component/button';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
id: string,
|
|
|
|
};
|
|
|
|
|
|
|
|
const TransactionLink = (props: Props) => {
|
|
|
|
const { id } = props;
|
|
|
|
|
2019-03-20 22:43:00 +01:00
|
|
|
const href = `https://explorer.lbry.com/tx/${id}`;
|
2018-03-26 23:32:43 +02:00
|
|
|
const label = id.substr(0, 7);
|
|
|
|
|
|
|
|
return <Button button="link" href={href} label={label} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TransactionLink;
|