monitorIndicator.tsx 352 B

123456789101112131415
  1. import styled from '@emotion/styled';
  2. const MonitorIndicator = styled('div')<{
  3. size: number;
  4. status: 'success' | 'warning' | 'error' | 'disabled';
  5. }>`
  6. display: inline-block;
  7. position: relative;
  8. border-radius: 50%;
  9. height: ${p => p.size}px;
  10. width: ${p => p.size}px;
  11. background: ${p => p.theme[p.status]};
  12. `;
  13. export {MonitorIndicator};