import React from 'react'; import styled from '@emotion/styled'; import Alert from 'app/components/alert'; import {IconCheckmark, IconClose, IconFlag, IconInfo} from 'app/icons'; import space from 'app/styles/space'; type Props = React.ComponentProps; const DEFAULT_ICONS = { info: , error: , warning: , success: , }; // Margin bottom should probably be a different prop const PanelAlert = styled(({icon, ...props}: Props) => ( ))` margin: 0 0 1px 0; padding: ${space(2)}; border-radius: 0; box-shadow: none; &:last-child { border-bottom: none; margin: 0; border-radius: 0 0 4px 4px; } `; export default PanelAlert;