grungnet/src/components/Link.js

14 lines
295 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";
2020-05-03 04:30:01 -04:00
import { HashLink as RouterLink } from "react-router-hash-link";
2020-04-24 10:02:06 -04:00
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;