mui-extended
Version:
Extended UI Components built on Material UI
12 lines (11 loc) • 475 B
JavaScript
import { __assign } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from "react";
import Link from "next/link";
import { Link as MuiLink } from "@mui/material";
export var NextLinkForMui = forwardRef(function NextLink(props, ref) {
return _jsx(Link, __assign({ ref: ref }, props));
});
export var MuiLinkWithNext = function (props) {
return _jsx(MuiLink, __assign({}, props, { component: NextLinkForMui, underline: "none" }));
};