+ {share.id} |
+ {share.views} |
+
+ {moment(share.expiration).unix() === 0
+ ? "Never"
+ : (publicRuntimeConfig.TWELVE_HOUR_TIME === "true")
+ ? moment(share.expiration).format("MMMM Do YYYY, h:mm a")
+ : moment(share.expiration).format("MMMM DD YYYY, HH:mm")
+ }
+ |
+
+
+ {
+ clipboard.copy(
+ `${window.location.origin}/share/${share.id}`
+ );
+ toast.success("Your link was copied to the keyboard.");
+ }}
+ >
+
+
+ {
+ modals.openConfirmModal({
+ title: `Delete share ${share.id}`,
+ children: (
+
+ Do you really want to delete this share?
+
+ ),
+ confirmProps: {
+ color: "red",
+ },
+ labels: {confirm: "Confirm", cancel: "Cancel"},
+ onConfirm: () => {
+ shareService.remove(share.id);
+ setShares(
+ shares.filter((item) => item.id !== share.id)
+ );
+ },
+ });
+ }}
+ >
+
+
+
+ |
+
+ ))}
+