{link.name || t("untitled")}
-
+ {t("name")} +
+
{t("collection")}
- {fieldToEdit !== "collection" && (
-
{t("tags")}
- {fieldToEdit !== "tags" && (
-
{t("description")}
- {fieldToEdit !== "description" && (
-
{link.description}
@@ -499,134 +483,165 @@ export default function LinkDetails({ } placeholder={t("link_description_placeholder")} className="resize-none w-full rounded-md p-2 h-32 border-neutral-content bg-base-200 focus:border-primary border-solid border outline-none duration-100" - autoFocus - onBlur={submit} /> )}- {link.url ? t("preserved_formats") : t("file")} -
- -- {t("preservation_in_queue")} -
-{t("check_back_later")}
++ {t("preservation_in_queue")} +
++ {t("check_back_later")} +
+{t("there_are_more_formats")}
++ {t("check_back_later")} +
++ {t("view_latest_snapshot")} +
+ + + )}{t("there_are_more_formats")}
-{t("check_back_later")}
++ {t("saved")}{" "} + {new Date(link.createdAt || "").toLocaleDateString("en-US", { + month: "short", + day: "numeric", + year: "numeric", + })}{" "} + at{" "} + {new Date(link.createdAt || "").toLocaleTimeString("en-US", { + hour: "numeric", + minute: "numeric", + })} +
+ > + ) : ( + <> +{t("view_latest_snapshot")}
- - - )} -- {t("saved")}{" "} - {new Date(link.createdAt || "").toLocaleDateString("en-US", { - month: "short", - day: "numeric", - year: "numeric", - })}{" "} - at{" "} - {new Date(link.createdAt || "").toLocaleTimeString("en-US", { - hour: "numeric", - minute: "numeric", - })} -
+ > + )}{t("edit_link")}
- - - - {link.url && ( - - -{shortenedURL}
- - )} - -{t("name")}
-{t("collection")}
- {link.collection.name && ( -{t("tags")}
-{t("description")}
-