panelAlert.tsx 559 B

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