ChemPal Documentation - v1.12.0
    Preparing search index...

    Function supplierDisplayNames

    • Supplier class names mapped to their human-readable display names — the shape the results-table filter and the stats panel want.

      Returns Record<string, string>

      Record mapping supplier class names to their display names.

      supplierDisplayNames().SupplierCarolina; // => "Carolina"
      
      export function supplierDisplayNames(): Record<string, string> {
      return Object.fromEntries(
      Object.entries(SUPPLIER_META).map(([key, meta]) => [key, meta.displayName]),
      );
      }