import { ListItem, ListItemButton, type ListItemProps, ListItemText, } from "@mui/material"; import { createLink } from "@tanstack/react-router"; import React, { forwardRef, type ReactNode } from "react"; interface MUIListItemLinkProps extends ListItemProps<"a"> { icon?: ReactNode; primary: string; className?: string; } const CreatedListItemLink = forwardRef( (props, ref) => (
{props.icon}
), ); const ListItemLink = createLink(CreatedListItemLink); export default ListItemLink; /* export default function ListItemLink(props: ListItemLinkProps) { const { icon, primary, to, className } = props; return (
  • {/* @ts-expect-error /*}
    {icon}
  • ); } */