gijl's picture
download
raw
451 Bytes
import { TOOL_UI } from '$lib/constants';
import type { ToolUiEntry } from '$lib/types';
/**
* Resolve the UI metadata (label + icon) for a server or browser tool by its
* name. Falls back to null for unknown tools so callers can render a generic
* chrome instead.
*/
export function getToolUi(toolName: string | undefined): ToolUiEntry | null {
if (!toolName) return null;
return (TOOL_UI as Record<string, ToolUiEntry>)[toolName] ?? null;
}

Xet Storage Details

Size:
451 Bytes
·
Xet hash:
5b02aab98ad810e2666dd9c9e6690005f1b074fd561f3a99689e6858b82b0c89

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.