mirror of
https://github.com/primer/css.git
synced 2024-11-30 11:17:05 +03:00
12 lines
265 B
JavaScript
12 lines
265 B
JavaScript
import React from 'react'
|
|
import NextLink from 'next/link'
|
|
import {Link as PrimerLink} from '@primer/components'
|
|
|
|
export default function Link({href, ...rest}) {
|
|
return (
|
|
<NextLink href={href}>
|
|
<PrimerLink href={href} {...rest} />
|
|
</NextLink>
|
|
)
|
|
}
|