14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
|
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;
|