MCPcopy Create free account
hub / github.com/hashintel/hash / generateIconPath

Function generateIconPath

apps/plugin-browser/src/shared/badge.ts:7–9  ·  view source on GitHub ↗
(
  status: "default" | "disabled" | "enabled" | "warning" | "error" | "success",
)

Source from the content-addressed store, hash-verified

5const isTestBedBuild = !!ITERO_TEST_BED;
6
7const generateIconPath = (
8 status: "default" | "disabled" | "enabled" | "warning" | "error" | "success",
9) => `/${status}-48${isTestBedBuild ? "-dev" : ""}.png`;
10
11export const clearError = async () => {
12 const inferenceConfig = await getFromLocalStorage("automaticInferenceConfig");

Callers 4

clearErrorFunction · 0.85
setDisabledBadgeFunction · 0.85
setEnabledBadgeFunction · 0.85
setErroredBadgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected