- {link.label} -
-- - {t("settings.sharing.created")}: - {" "} - {formatDate(link.createdAt)} -
-- - {t("settings.sharing.expires")}: - {" "} - {formatDateTime(link.expiresAt)} -
-- - {t("settings.sharing.accessCount")}: - {" "} - {link.accessCount} - {link.lastAccessAt - ? ` · ${formatDateTime(link.lastAccessAt)}` - : ""} -
-
- {link.label}
+ {isError ? (
+ // A read failure must not read as "no active links" on a clinical
+ // sharing surface — that is the §6 fall-through this card must avoid.
+
+ {link.label}
+
+
+ {t("settings.sharing.created")}:
+ {" "}
+ {formatDate(link.createdAt)}
+
+ {t("settings.sharing.expires")}:
+ {" "}
+ {formatDateTime(link.expiresAt)}
+
+
+ {t("settings.sharing.accessCount")}:
+ {" "}
+ {link.accessCount}
+ {link.lastAccessAt
+ ? ` · ${formatDateTime(link.lastAccessAt)}`
+ : ""}
+
+ {t("settings.sharing.activeTitle")}
+
+ {activeLinks.length === 0 ? (
+
+ {activeLinks.map((link) => (
+
+ {link.label} +
++ {t("settings.sharing.reselectReason")} +
+ +- {t("settings.sharing.reselectReason")} + + {t("settings.sharing.accessCount")}: + {" "} + {link.accessCount}
- -- - {t("settings.sharing.accessCount")}: - {" "} - {link.accessCount} -
-