0 ? "File too large to copy" : "Copy File Contents"}>
+ {tooltipProps => (
+ {
+ if (!recentlyCopied && bytesLeft <= 0) {
+ copyWithToast(fileContents);
+ setRecentlyCopied(true);
+ setTimeout(() => setRecentlyCopied(false), 2000);
+ }
+ }}
+ >
+ {recentlyCopied ? : bytesLeft > 0 ? : }
+
+ )}
+
+ );
+ }, { noop: true }),
+});
diff --git a/src/plugins/CopyFileContents/style.css b/src/plugins/CopyFileContents/style.css
new file mode 100644
index 000000000..c643cf0f0
--- /dev/null
+++ b/src/plugins/CopyFileContents/style.css
@@ -0,0 +1,8 @@
+.vc-cfc-button {
+ color: var(--interactive-normal);
+ cursor: pointer;
+}
+
+.vc-cfc-button:hover {
+ color: var(--interactive-hover);
+}
diff --git a/src/plugins/openInApp/index.ts b/src/plugins/openInApp/index.ts
index 1a68e8f5d..2e332465e 100644
--- a/src/plugins/openInApp/index.ts
+++ b/src/plugins/openInApp/index.ts
@@ -33,7 +33,7 @@ interface URLReplacementRule {
// Do not forget to add protocols to the ALLOWED_PROTOCOLS constant
const UrlReplacementRules: Record