anchor.tsx 328 B

12345678910111213
  1. import isPropValid from '@emotion/is-prop-valid';
  2. import styled from '@emotion/styled';
  3. import {linkStyles} from './styles';
  4. const Anchor = styled('a', {
  5. shouldForwardProp: prop =>
  6. typeof prop === 'string' && isPropValid(prop) && prop !== 'disabled',
  7. })<{disabled?: boolean}>`
  8. ${linkStyles}
  9. `;
  10. export default Anchor;