// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import translate from 'translations'; import printElement from 'utils/printElement'; import { PaperWallet } from 'components'; import type PrivKeyWallet from 'libs/wallet/privkey'; type Props = { wallet: PrivKeyWallet }; export default class PrintableWallet extends Component { props: Props; static propTypes = { wallet: PropTypes.object.isRequired }; print = () => { printElement(, { popupFeatures: { scrollbars: 'no' }, styles: ` * { box-sizing: border-box; } body { font-family: Lato, sans-serif; font-size: 1rem; line-height: 1.4; margin: 0; } ` }); }; render() { return (
{translate('x_Print')}
); } }