import React from "react"; import styled from "styled-components"; import { s } from "@shared/styles"; import Flex from "./Flex"; import Text from "./Text"; type Props = { children?: React.ReactNode; icon?: JSX.Element; description?: JSX.Element; }; const Notice: React.FC = ({ children, icon, description }: Props) => ( {icon} {children} {description && ( <>
{description} )}
); const Title = styled.span` font-weight: 500; font-size: 16px; `; const Container = styled(Text)` background: ${s("sidebarBackground")}; color: ${s("sidebarText")}; padding: 10px 12px; border-radius: 4px; position: relative; font-size: 14px; margin: 1em 0 0; svg { flex-shrink: 0; } `; export default Notice;