// App metadata helper — resolves an app's icon path, falling back to the
// bundled SVG when the catalog entry doesn't carry an explicit icon URL.

function getAppIcon(appName, appIconUrl) {
  const cleanAppName = appName.replace('install_', '').replace(' ', '');
  // Use icon URL from JSON if available, otherwise fall back to default
  return appIconUrl || `/core/icons/apps/${cleanAppName}.svg`;
}
