(icon: IconName)
| 532 | } |
| 533 | |
| 534 | const toOpenVariant = (icon: IconName): IconName => { |
| 535 | if (!icon.startsWith("Folder")) return icon |
| 536 | if (icon.endsWith("_light")) return icon.replace("_light", "Open_light") as IconName |
| 537 | if (!icon.endsWith("Open")) return (icon + "Open") as IconName |
| 538 | return icon |
| 539 | } |
| 540 | |
| 541 | const basenameOf = (p: string) => |
| 542 | p |