import * as React from 'react'; import { Link as RouterLink, LinkProps as RouterLinkProps, MemoryRouter, StaticRouter, } from 'react-router'; import Link from '@mui/material/Link'; import Box from '@mui/material/Box'; const LinkBehavior = React.forwardRef>( (props, ref) => ( ), ); function Router(props: { children?: React.ReactNode }) { const { children } = props; if (typeof window === 'undefined') { return {children}; } return {children}; } export default function LinkRouter() { return ( With prop forwarding
Without prop forwarding
); }