import { PaperWallet } from 'components'; import React from 'react'; import { translateRaw } from 'translations'; import printElement from 'utils/printElement'; import { stripHexPrefix } from 'libs/values'; export const print = (address: string, privateKey: string) => () => address && privateKey && printElement(, { popupFeatures: { scrollbars: 'no' }, styles: ` * { box-sizing: border-box; } body { font-family: Lato, sans-serif; font-size: 1rem; line-height: 1.4; margin: 0; } ` }); interface Props { address: string; privateKey: string; } const PrintableWallet: React.SFC = ({ address, privateKey }) => { const pkey = stripHexPrefix(privateKey); return (
{translateRaw('x_Print')}
); }; export default PrintableWallet;