Function: getIcon()
ts
function getIcon(
name: string,
kind: "default" | "file_type" | "folder_type",
opened: boolean,
light: boolean,
): string | undefined;Retrieves the icon URL for a given name and kind.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
name | string | undefined | The name of the icon to retrieve. |
kind | "default" | "file_type" | "folder_type" | undefined | The kind of icon to retrieve, either 'default', 'file_type', or 'folder_type'. |
opened | boolean | false | Whether the icon is for an opened folder or not. |
light | boolean | true | - |
Returns
string | undefined
The URL string for the icon, or undefined if not found.