diff --git a/components/CopyButton.tsx b/components/CopyButton.tsx deleted file mode 100644 index 090d64b..0000000 --- a/components/CopyButton.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react"; - -type Props = { - text: string; -}; - -const CopyButton = ({ text }: Props) => { - return ( -
{name}
-- {value < 1000 ? value : (value / 1000).toFixed(1) + "k"} -
-- {value} -
+{value}
{link.name}
} - - {link.url && ( - <> -{t("link")}
- -{t("collection")}
- -{link.collection.name}
-{t("tags")}
-{t("notes")}
- -{link.description}
-- {link.url ? t("preserved_formats") : t("file")} -
- -{t("preservation_in_queue")}
-{t("check_back_later")}
-{t("there_are_more_formats")}
-{t("check_back_later")}
-{t("view_latest_snapshot")}
- - - )} -+ {t("description")} +
+ ++ {link.description ? ( + unescapeString(link.description) + ) : ( + + {t("no_description")} + + )} +
+ {link.tags && link.tags[0] && ( + <> ++ {t("tags")} +
+ ++ {t("description")} +
+ ++ {link.description ? ( + unescapeString(link.description) + ) : ( + + {t("no_description")} + + )} +
+ {link.tags && link.tags[0] && ( + <> ++ {t("tags")} +
+ +{t("sharable_link_guide")}
-{t("access_token_created")}
{t("token_creation_notice")}
-{name}
{unescapeString(link?.description)}
: undefined}