123456789101112131415161718192021222324 |
- import styled from '@emotion/styled';
- import {Level} from 'sentry/types';
- const DEFAULT_SIZE = '13px';
- type Props = {
- level?: Level;
- size?: string;
- };
- const ErrorLevel = styled('span')<Props>`
- padding: 0;
- position: relative;
- width: ${p => p.size || DEFAULT_SIZE};
- height: ${p => p.size || DEFAULT_SIZE};
- text-indent: -9999em;
- display: inline-block;
- border-radius: 50%;
- flex-shrink: 0;
- background-color: ${p => (p.level ? p.theme.level[p.level] : p.theme.level.error)};
- `;
- export default ErrorLevel;
|