mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-21 13:32:47 +02:00
21 lines
566 B
JavaScript
21 lines
566 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import { FormattedMessage } from 'react-intl';
|
|
import ExternalLink from './ExternalLink';
|
|
import Icon from './Icon';
|
|
|
|
const PrintLink = ({ className, href }) =>
|
|
href && (
|
|
<ExternalLink className={className} href={href}>
|
|
<Icon img="icon-icon_print" />{' '}
|
|
<FormattedMessage id="print" defaultMessage="Print" />
|
|
</ExternalLink>
|
|
);
|
|
|
|
PrintLink.displayName = 'PrintLink';
|
|
|
|
PrintLink.propTypes = {
|
|
href: PropTypes.string,
|
|
className: PropTypes.string,
|
|
};
|
|
export default PrintLink;
|