/* @flow */ import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; type Props = { model: string, }; const Wrapper = styled.div``; const Img = styled.img` width: ${props => (props.model === 'T' ? '17px' : '13px')}; `; const TrezorImage = ({ model }: Props) => { const imageName = model === 'One' ? 1 : model; // $FlowIssue: `require` must be a string literal. const src = require(`./images/trezor-${imageName}.png`); // eslint-disable-line return ( ); }; TrezorImage.propTypes = { model: PropTypes.string, }; export default TrezorImage;