New components, convert hooks to components, bug fixes.
This commit is contained in:
12
components/Link.js
Normal file
12
components/Link.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import NextLink from 'next/link';
|
||||
import styles from './Link.module.css';
|
||||
|
||||
export default function Link({ href, className, children }) {
|
||||
return (
|
||||
<NextLink href={href}>
|
||||
<a className={classNames(styles.link, className)}>{children}</a>
|
||||
</NextLink>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user