import React from 'react'; import styled from 'styled-components'; import {Info} from 'react-feather'; type NoticeProps = { color?: 'yellow' | 'grey' | 'green'; }; const Notice: React.FC = ({color = 'grey', children}) => { return ( {children} ); }; const StyledPanel = styled.div` width: 100%; background: ${({color, theme}) => color === 'grey' ? theme.color.grey[900] : color === 'yellow' ? '#c6840077' : '#689f3877'}; color: ${({color, theme}) => (color === 'grey' ? theme.color.grey[400] : color === 'yellow' ? '#ffd54f' : '#8bc34a')}; border-radius: 15px; `; const StyledText = styled.span``; const StyledIcon = styled.span` margin-top: 2px; margin-right: 10px; `; const StyledTextWrapper = styled.span` display: flex; flex-direction: column; `; const StyledCardContentInner = styled.div` display: flex; align-items: start; flex-direction: row; padding: ${(props) => props.theme.spacing[3]}px; `; export default Notice;