2020-02-20 16:16:01 +01:00
|
|
|
import styled from 'styled-components';
|
2020-02-25 13:01:56 +01:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import { themePropTypes } from 'strapi-helper-plugin';
|
2020-02-20 16:16:01 +01:00
|
|
|
|
|
|
|
|
const Wrapper = styled.div`
|
|
|
|
|
display: flex;
|
2020-02-25 13:01:56 +01:00
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2020-02-20 16:16:01 +01:00
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
2020-03-09 19:12:21 +01:00
|
|
|
margin-left: auto;
|
2020-02-21 07:58:14 +01:00
|
|
|
margin-right: 5px;
|
2020-02-25 13:01:56 +01:00
|
|
|
background-color: ${({ theme }) => theme.main.colors.white};
|
2020-02-20 16:16:01 +01:00
|
|
|
border: 1px solid #e3e9f3;
|
2020-02-25 13:01:56 +01:00
|
|
|
border-radius: ${({ theme }) => theme.main.sizes.borderRadius};
|
2020-02-20 16:16:01 +01:00
|
|
|
cursor: pointer;
|
2020-02-21 07:58:14 +01:00
|
|
|
font-size: 11px;
|
|
|
|
|
color: ${({ color }) => color};
|
2020-02-20 16:16:01 +01:00
|
|
|
`;
|
|
|
|
|
|
2020-02-21 07:58:14 +01:00
|
|
|
Wrapper.defaultProps = {
|
|
|
|
|
color: '#b3b5b9',
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-25 13:01:56 +01:00
|
|
|
Wrapper.propTypes = {
|
|
|
|
|
color: PropTypes.string,
|
|
|
|
|
...themePropTypes,
|
|
|
|
|
};
|
|
|
|
|
|
2020-02-20 16:16:01 +01:00
|
|
|
export default Wrapper;
|