React + Typescript + MUI type error – No overload matches this call on MUI icon import – Reactjs
I have a component that imports: import LogoutIcon from "@mui/icons-material/Logout"; import useLogout from "@/hooks/auth/useLogout"; const { trigger: logoutTrigger } = useLogout(); But where I use this component is here: <LogoutIcon type="button" onClick={logoutTrigger} sx={LogoutIconSx} cursor="pointer" /> And it all gets highlighted…