import React, { ReactNode } from 'react';
import styled from 'styled-components';
import { border, color, space, SpaceProps } from 'styled-system';
import Box from '../Box';
import Text from '../Text';
export interface NoticeBoxProps extends SpaceProps {
children?: ReactNode;
}
const StyledNoticeBox = styled(Box)`
${({ theme }) =>
border({
theme,
borderColor: 'shades.grey42',
borderWidth: '1px 2px 4px 1px',
borderStyle: 'solid',
borderRadius: theme.border.radii[1],
})}
${({ theme }) => color({ theme, bg: 'feedback.notice' })}
${space};
a {
background-image: url('data:image/svg+xml;base64,${btoa(
'',
)}');
}
a:visited,
a:hover,
a:focus {
color: #2a2a2a;
text-decoration: none;
background-repeat: repeat-x;
background-size: 1px 1px;
background-position: 0 100%;
background-image: url('data:image/svg+xml;base64,${btoa(
'',
)}');
}
`;
export const NoticeBoxText: React.FC<{ children?: ReactNode }> = ({
children,
}) => {
return (
{children}
);
};
const NoticeBox: React.FC = ({ children, ...rest }) => {
return (
{children}
);
};
export default NoticeBox;