1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-12 01:28:13 +00:00
trezor-wallet/src/components/TooltipContent/index.js
2018-08-28 09:43:45 +02:00

27 lines
551 B
JavaScript

import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { FONT_SIZE } from 'config/variables';
const Wrapper = styled.div`
width: ${props => (props.isAside ? '260px' : '320px')};
font-size: ${FONT_SIZE.SMALLEST};
`;
const TooltipContent = ({
children, isAside = false,
}) => (
<Wrapper
isAside={isAside}
>
{children}
</Wrapper>
);
TooltipContent.propTypes = {
children: PropTypes.node,
isAside: PropTypes.bool,
};
export default TooltipContent;