1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-01 20:32:37 +00:00
trezor-wallet/src/components/images/TrezorImage/index.js
2018-08-30 19:40:35 +02:00

23 lines
516 B
JavaScript

import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
const Wrapper = styled.div``;
const Img = styled.img`
width: ${props => (props.model === 'T' ? '17px' : '13px')};
`;
const TrezorImage = ({ model }) => (
<Wrapper>
<Img model={model} src={model === 'T' ? './images/trezor-T.png' : './images/trezor-1.png'} />
</Wrapper>
);
TrezorImage.propTypes = {
model: PropTypes.string,
status: PropTypes.string,
};
export default TrezorImage;