monitorIndicator.tsx 445 B

123456789101112131415161718
  1. import styled from '@emotion/styled';
  2. import type {CheckInStatus} from 'sentry/views/monitors/types';
  3. import {getTickStyle} from 'sentry/views/monitors/utils';
  4. const MonitorIndicator = styled('div')<{
  5. size: number;
  6. status: CheckInStatus;
  7. }>`
  8. display: inline-block;
  9. position: relative;
  10. border-radius: 50%;
  11. height: ${p => p.size}px;
  12. width: ${p => p.size}px;
  13. ${p => getTickStyle(p.status, p.theme)}
  14. `;
  15. export {MonitorIndicator};