lbry-desktop/ui/component/common/transaction-link.jsx

19 lines
361 B
React
Raw Normal View History

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}`;
const label = id.slice(0, 7);
2018-03-26 23:32:43 +02:00
return <Button button="link" href={href} label={label} />;
};
export default TransactionLink;