Buckets:
| import * as React from 'react' | |
| import NextLink from 'next/link' | |
| import MuiLink from '@mui/material/Link' | |
| import { styled } from '@mui/material/styles' | |
| // Add support for the sx prop for consistency with the other branches. | |
| const Anchor = styled(NextLink)({}) | |
| export const NextLinkComposed = React.forwardRef( | |
| function NextLinkComposed(props, ref) { | |
| const { children, ...rest } = props | |
| return ( | |
| <Anchor href="/" ref={ref} {...rest}> | |
| {children} | |
| </Anchor> | |
| ) | |
| } | |
| ) | |
| // A styled version of the Next.js Link component: | |
| // https://nextjs.org/docs/api-reference/next/link | |
| const Link = React.forwardRef(function Link(props, ref) { | |
| return <MuiLink component={NextLinkComposed} ref={ref} {...props} /> | |
| }) | |
| export default Link | |
Xet Storage Details
- Size:
- 753 Bytes
- Xet hash:
- 92dcf361b9755de2b79a5d03f7d831818c3532ebbf4e0ef7d54a33edc4e4b879
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.