@fluid-app/portal-sdk 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1008,7 +1008,15 @@ const AnalyticsPlaceholder = React.memo(function AnalyticsPlaceholder() {
1008
1008
  })
1009
1009
  });
1010
1010
  });
1011
- const NoAssetsState = React.memo(function NoAssetsState() {
1011
+ const RELATEABLE_TYPE_LABELS = {
1012
+ Product: "product",
1013
+ Medium: "media",
1014
+ EnrollmentPack: "enrollment pack",
1015
+ MySite: "site",
1016
+ Library: "library"
1017
+ };
1018
+ const NoAssetsState = React.memo(function NoAssetsState({ relateable_type }) {
1019
+ const label = RELATEABLE_TYPE_LABELS[relateable_type] ?? "item";
1012
1020
  return /* @__PURE__ */ jsx("div", {
1013
1021
  className: "flex flex-1 items-center justify-center px-6",
1014
1022
  children: /* @__PURE__ */ jsxs("div", {
@@ -1022,9 +1030,13 @@ const NoAssetsState = React.memo(function NoAssetsState() {
1022
1030
  className: "mb-1 text-sm text-gray-500",
1023
1031
  children: "No Marketing Assets"
1024
1032
  }),
1025
- /* @__PURE__ */ jsx("div", {
1033
+ /* @__PURE__ */ jsxs("div", {
1026
1034
  className: "text-xs text-gray-400",
1027
- children: "This product does not have any associated media"
1035
+ children: [
1036
+ "This ",
1037
+ label,
1038
+ " does not have any associated media"
1039
+ ]
1028
1040
  })
1029
1041
  ]
1030
1042
  })
@@ -1035,7 +1047,7 @@ function MarketingAssetsGrid({ isLoading, error, activeTab, onTabChange, mediaIt
1035
1047
  onMediaItemClick(mediaItem);
1036
1048
  }, [onMediaItemClick]);
1037
1049
  const renderContent = () => {
1038
- if (showEmptyState) return /* @__PURE__ */ jsx(NoAssetsState, {});
1050
+ if (showEmptyState) return /* @__PURE__ */ jsx(NoAssetsState, { relateable_type });
1039
1051
  if (activeMainTab === "Analytics" && relateable_type === "Medium") return /* @__PURE__ */ jsx(AnalyticsPlaceholder, {});
1040
1052
  if (activeMainTab === "Related Sharables") return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
1041
1053
  className: "mb-4 px-4 pt-4",
@@ -8985,4 +8997,4 @@ function ProductsApp({ countryCode, companyLogoUrl, productId: controlledProduct
8985
8997
  //#endregion
8986
8998
  export { ShareablesCoreProvider as i, ShareablesApp as n, ShareablesUIProvider as r, ProductsApp as t };
8987
8999
 
8988
- //# sourceMappingURL=src-CghkSQGd.mjs.map
9000
+ //# sourceMappingURL=src-CvQ9ezCI.mjs.map