umami/components/common/Link.js
2020-08-07 20:36:57 -07:00

13 lines
336 B
JavaScript

import React from 'react';
import classNames from 'classnames';
import NextLink from 'next/link';
import styles from './Link.module.css';
export default function Link({ className, children, ...props }) {
return (
<NextLink {...props}>
<a className={classNames(styles.link, className)}>{children}</a>
</NextLink>
);
}