2021-05-13 18:57:37 +02:00
|
|
|
import styled from 'styled-components';
|
|
|
|
|
2023-02-16 11:23:19 +02:00
|
|
|
const StyledMessage = styled.div<{ type: string }>`
|
2021-05-13 18:57:37 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
background-color: ${props => props.type === 'error' ? props.theme.warningBackgroundColor : 'transparent'};
|
|
|
|
font-size: ${props => props.theme.fontSize}px;
|
|
|
|
color: ${props => props.theme.color};
|
|
|
|
font-family: ${props => props.theme.fontFamily};
|
|
|
|
padding: ${props => props.type === 'error' ? props.theme.mainPadding : '0'}px;
|
2021-05-15 16:04:10 +02:00
|
|
|
word-break: break-all;
|
2021-05-13 18:57:37 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default StyledMessage;
|