1
1
mirror of https://github.com/primer/css.git synced 2024-12-03 15:35:29 +03:00
css/docs/Link.js

12 lines
265 B
JavaScript
Raw Normal View History

2018-12-05 03:20:57 +03:00
import React from 'react'
2018-12-05 02:59:11 +03:00
import NextLink from 'next/link'
import {Link as PrimerLink} from '@primer/components'
2018-12-05 03:20:57 +03:00
export default function Link({href, ...rest}) {
return (
<NextLink href={href}>
<PrimerLink href={href} {...rest} />
</NextLink>
)
}