panel.tsx 581 B

1234567891011121314151617181920
  1. import styled from '@emotion/styled';
  2. import space from 'sentry/styles/space';
  3. type Props = {
  4. dashedBorder?: boolean;
  5. 'data-test-id'?: string;
  6. };
  7. const Panel = styled('div')<Props>`
  8. background: ${p => (p.dashedBorder ? p.theme.backgroundSecondary : p.theme.background)};
  9. border-radius: ${p => p.theme.borderRadius};
  10. border: 1px
  11. ${p => (p.dashedBorder ? 'dashed' + p.theme.gray300 : 'solid ' + p.theme.border)};
  12. box-shadow: ${p => (p.dashedBorder ? 'none' : p.theme.dropShadowLight)};
  13. margin-bottom: ${space(2)};
  14. position: relative;
  15. `;
  16. export default Panel;