mirror of
https://github.com/primer/css.git
synced 2024-12-24 14:42:26 +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>
|
|
)
|
|
}
|