mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-17 17:28:07 +00:00
12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import NextLink, { LinkProps as NextLinkProps } from 'next/link'
|
|
import MUILink, { LinkProps as MUILinkProps } from '@mui/material/Link'
|
|
|
|
export const Link: React.FC<MUILinkProps> = (props) => {
|
|
const { href, children, ...rest } = props
|
|
return (
|
|
<NextLink passHref href={href!}>
|
|
<MUILink {...rest}>{children}</MUILink>
|
|
</NextLink>
|
|
)
|
|
}
|