panelAlert.tsx 462 B

1234567891011121314151617181920
  1. import styled from '@emotion/styled';
  2. import Alert from 'sentry/components/alert';
  3. type Props = React.ComponentProps<typeof Alert>;
  4. // Margin bottom should probably be a different prop
  5. const PanelAlert = styled(({...props}: Props) => <Alert {...props} showIcon system />)`
  6. margin: 0 0 1px 0;
  7. border-radius: 0;
  8. box-shadow: none;
  9. &:last-child {
  10. border-bottom: none;
  11. margin: 0;
  12. border-radius: 0 0 4px 4px;
  13. }
  14. `;
  15. export default PanelAlert;