mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
551 B
27 lines
551 B
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;
|