madiator.com/ui/component/common/transaction-link.jsx

19 lines
362 B
React
Raw Normal View History

2021-08-16 12:11:25 +02:00
// @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.com/tx/${id}`;
const label = id.substr(0, 7);
return <Button button="link" href={href} label={label} />;
};
export default TransactionLink;