grungnet/src/components/Link.js

14 lines
275 B
JavaScript
Raw Normal View History

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}>
<ThemeLink {...rest} />
</RouterLink>
);
}
export default Link;