moreFeaturesLink.tsx 896 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import styled from '@emotion/styled';
  2. import ExternalLink from 'sentry/components/links/externalLink';
  3. import {IconBusiness} from 'sentry/icons';
  4. import {t} from 'sentry/locale';
  5. import {space} from 'sentry/styles/space';
  6. type Props = {
  7. color?: string;
  8. /**
  9. * To match power icon
  10. */
  11. iconSize?: string;
  12. };
  13. function MoreFeaturesLink({color, iconSize}: Props) {
  14. return (
  15. <MoreLink href="https://sentry.io/pricing" color={color}>
  16. <IconBusiness legacySize={iconSize} />
  17. {t('And more...')}
  18. </MoreLink>
  19. );
  20. }
  21. const MoreLink = styled(ExternalLink)<{color?: string}>`
  22. display: grid;
  23. grid-template-columns: max-content auto;
  24. gap: ${space(1)};
  25. align-items: center;
  26. align-content: center;
  27. color: ${p => p.color ?? p.theme.gray300};
  28. &:hover,
  29. &:focus,
  30. &:active {
  31. color: ${p => p.color ?? p.theme.textColor};
  32. }
  33. `;
  34. export default MoreFeaturesLink;