"use client"; import Link from "next/link"; import { useTheme } from "@mui/material"; export default function LinkRenderer(props: any) { const theme = useTheme(); const { href, children } = props; return ( (e.currentTarget.style.textDecoration = "underline") } onMouseOut={(e) => (e.currentTarget.style.textDecoration = "none") } > {children} ); }