type CustomIcon = string | (({ theme, iconSize }) => string);Type representing a custom icon, which can be a string or a function.
- If a string, it represents the name of the icon.
- If a function, it takes an object with
themeandiconSizeproperties and returns a string representing the icon.