What is the difference between these TypeScript import types?
import SettingsIcon from "@material-ui/icons/Settings";
import { MenuList } from "@material-ui/core";
As far as I understand, the first one without curly brackets is a direct class import and and the second is one class out of a collection of classes. Would that be right? One thing that does not work is importing several *Icon
classes from @material-ui/icons
and I cannot really tell why, i.e. the following does not work:
import { ImageIcon, LanguageIcon, DescriptionIcon, MenuIcon, SchoolIcon, SettingsIcon } from "@material-ui/icons";
Why can I not import those icon classes? How can I find out what type of import I need?