interface ShowProductForSupplyOptions {
    catalogApi: Pick<CatalogApi<unknown, unknown, unknown>, "listAttributes" | "getProduct" | "updateProduct">;
    demandSiteProductUrl: string;
    editProductRoute: string;
    nameForCategory?: ((name, t) => string);
}

Properties

catalogApi: Pick<CatalogApi<unknown, unknown, unknown>, "listAttributes" | "getProduct" | "updateProduct">

The client API for catalog service

demandSiteProductUrl: string

url pattern for the demand product detail page

editProductRoute: string

route used to navigate to when editing item

nameForCategory?: ((name, t) => string)

Name function for Categories. Use for translating category names. Default behavior will use the translation given by Geekle:categories.${name}

Type declaration

    • (name, t): string
    • Name function for Categories. Use for translating category names. Default behavior will use the translation given by Geekle:categories.${name}

      Parameters

      • name: string
      • t: TFunction<"translation", undefined>

      Returns string

Generated using TypeDoc