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