grungnet/src/components/Link.js
2020-05-03 18:30:01 +10:00

14 lines
295 B
JavaScript

import React from "react";
import { Link as ThemeLink } from "theme-ui";
import { HashLink as RouterLink } from "react-router-hash-link";
function Link({ to, ...rest }) {
return (
<RouterLink to={to}>
<ThemeLink as="span" {...rest} />
</RouterLink>
);
}
export default Link;