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 }),
});