add default filename, use monitor name for filename

This commit is contained in:
Alex Holliday committed 2025-02-20 15:20:17 -08:00
1 parent b0cadf66bf
commit 0e1ffe7cef
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import ShareIcon from "@mui/icons-material/Share";
import { Button } from "@mui/material";
import { useTheme } from "@emotion/react";
const ShareComponent = ({ elementToCapture, fileName }) => {
const ShareComponent = ({ elementToCapture, fileName = "screenshot" }) => {
const theme = useTheme();
const captureAndShare = async () => {
try {