Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
at main 387 B view raw
1import React from 'react'; 2import styled from 'styled-components'; 3import { Link as ReactRouterLink } from 'react-router-dom'; 4 5import { buttonLinkStyling } from './button'; 6 7export const Link = styled(({ isExternal, ...rest }) => 8 isExternal ? ( 9 <a href={rest.to} {...rest}> 10 {rest.children} 11 </a> 12 ) : ( 13 <ReactRouterLink {...rest} /> 14 ) 15)` 16 ${buttonLinkStyling} 17`;