mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-29 05:34:44 +00:00
feat: test ISR
This commit is contained in:
26 files changed
+295
-192
No files matched your search
@@ -1,17 +1,20 @@
|
||||
import NextLink from 'next/link'
|
||||
import { AnchorHTMLAttributes } from 'react'
|
||||
import type { AnchorHTMLAttributes } from 'react'
|
||||
|
||||
import { LinkVariantProps, Wrapper } from './styles'
|
||||
import type { LinkVariantProps } from './styles'
|
||||
import { Wrapper } from './styles'
|
||||
|
||||
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> &
|
||||
LinkVariantProps & {
|
||||
href: string
|
||||
}
|
||||
export type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
||||
href: string
|
||||
theme?: LinkVariantProps['theme']
|
||||
}
|
||||
|
||||
export function Link({ href, ...rest }: LinkProps) {
|
||||
export function Link({ href, theme, ...rest }: LinkProps) {
|
||||
return (
|
||||
<NextLink href={href} passHref>
|
||||
<Wrapper {...rest} />
|
||||
<Wrapper theme={theme} {...rest} />
|
||||
</NextLink>
|
||||
)
|
||||
}
|
||||
|
||||
export type { LinkVariantProps }
|
||||
Reference in new issue
Block a user