1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 11:17:05 +03:00
css/docs/Link.js
2019-02-04 13:04:24 -08:00

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>
)
}