notAvailable.tsx 477 B

12345678910111213141516171819202122
  1. import styled from '@emotion/styled';
  2. import Tooltip from 'sentry/components/tooltip';
  3. type Props = {
  4. className?: string;
  5. tooltip?: React.ReactNode;
  6. };
  7. function NotAvailable({tooltip, className}: Props) {
  8. return (
  9. <Tooltip title={tooltip} skipWrapper disabled={tooltip === undefined}>
  10. <Wrapper className={className}>{'\u2014'}</Wrapper>
  11. </Tooltip>
  12. );
  13. }
  14. const Wrapper = styled('div')`
  15. color: ${p => p.theme.gray200};
  16. `;
  17. export default NotAvailable;