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