{"size": 510, "ext": "js", "max_stars_repo_path": "src/components/ScrollLink.js", "max_stars_repo_name": "Stock44/equator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/ScrollLink.js", "max_issues_repo_name": "Stock44/equator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/ScrollLink.js", "max_forks_repo_name": "Stock44/equator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.1818181818, "max_line_length": 61, "alphanum_fraction": 0.6843137255}
import * as React from "react";
import { Link as MuiLink } from "@mui/material";
import { Link } from "react-scroll";


const ScrollLinkBehavior = React.forwardRef((props, ref) => (
  <Link {...props} />
));

/**
 * MUI Link component that implements scrolling behavior
 * from react-scroll library.
 * @param props - Props for the Link component.
 * @returns {JSX.Element}
 * @constructor
 */
const ScrollLink = (props) => <MuiLink
  component={ScrollLinkBehavior} {...props} />;

export default ScrollLink;

