import React from 'react' import QRCode from 'react-qr' export default class Tempalink extends React.Component { constructor() { super() this.onClick = this.onClick.bind(this) } onClick(e) { e.target.setSelectionRange(0, 9999) } render() { const url = `${window.location.origin}/${this.props.token}` const shortUrl = `${window.location.origin}/download/${this.props.shortToken}` return (
or, for short: {shortUrl}
) } }