feat: add social links

This commit is contained in:
Daniel Soares committed 2021-12-11 13:42:11 -03:00
1 parent 54cab65e79
commit cd8259a0a5
10 files changed
+207 -13

No files matched your search

+17
View File
@@ -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>
)
}