2020-04-24 10:02:06 -04:00
|
|
|
import React from "react";
|
|
|
|
import { Link as ThemeLink } from "theme-ui";
|
|
|
|
import { Link as RouterLink } from "react-router-dom";
|
|
|
|
|
|
|
|
function Link({ to, ...rest }) {
|
|
|
|
return (
|
|
|
|
<RouterLink to={to}>
|
2020-04-24 10:10:53 -04:00
|
|
|
<ThemeLink as="span" {...rest} />
|
2020-04-24 10:02:06 -04:00
|
|
|
</RouterLink>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Link;
|