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.
43 lines
1.0 KiB
43 lines
1.0 KiB
6 years ago
|
import styled, { css } from 'styled-components';
|
||
6 years ago
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
|
||
|
import colors from 'config/colors';
|
||
|
import { FONT_SIZE } from 'config/variables';
|
||
|
|
||
|
const Wrapper = styled.div`
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
padding: 8px 28px 8px 24px;
|
||
|
font-size: ${FONT_SIZE.SMALLER};
|
||
|
color: ${colors.TEXT_SECONDARY};
|
||
6 years ago
|
background: ${colors.LANDING};
|
||
6 years ago
|
${props => props.borderTop && css`
|
||
|
border-top: 1px solid ${colors.DIVIDER};
|
||
|
`}
|
||
|
${props => props.borderBottom && css`
|
||
|
border-bottom: 1px solid ${colors.DIVIDER};
|
||
|
`}
|
||
6 years ago
|
`;
|
||
|
|
||
6 years ago
|
const Divider = ({
|
||
6 years ago
|
textLeft, textRight, borderTop = false, borderBottom = false,
|
||
6 years ago
|
}) => (
|
||
|
<Wrapper
|
||
|
borderTop={borderTop}
|
||
|
borderBottom={borderBottom}
|
||
|
>
|
||
6 years ago
|
<p>{textLeft}</p>
|
||
|
<p>{textRight}</p>
|
||
|
</Wrapper>
|
||
|
);
|
||
|
|
||
6 years ago
|
Divider.propTypes = {
|
||
6 years ago
|
textLeft: PropTypes.string,
|
||
|
textRight: PropTypes.string,
|
||
6 years ago
|
borderTop: PropTypes.bool,
|
||
|
borderBottom: PropTypes.bool,
|
||
6 years ago
|
};
|
||
|
|
||
6 years ago
|
export default Divider;
|