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 00000000..c643cf0f
--- /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);
+}