import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { Button, Input, InputGroup, InputGroupAddon } from 'reactstrap'; import { gettext } from '../utils/constants'; import ButtonQR from './btn-qr-code'; const propTypes = { link: PropTypes.string.isRequired, linkExpired: PropTypes.bool.isRequired, copyLink: PropTypes.func.isRequired }; // for 'share link' & 'upload link' class SharedLink extends React.Component { render() { const { link, linkExpired, copyLink } = this.props; return (
{linkExpired &&

({gettext('Expired')})

}
); } } SharedLink.propTypes = propTypes; export default SharedLink;