import React from "react";
import {Button, Header, Icon, Modal} from "./ui";
import QRCode from "react-qr-code";
import {sendNotification} from "../api";
export const ShareEveryoneButton = ({url, size, onClick}) => {
const handleShare = async () => {
await sendNotification('A user shared this', url);
if (onClick) {
await onClick();
}
}
return
}
export const ShareButton = () => {
const [open, setOpen] = React.useState(false);
const handleOpen = (e) => {
if (e) {
e.preventDefault();
}
setOpen(true);
}
const handleClose = (e) => {
if (e) {
e.preventDefault();
}
setOpen(false);
}
return <>
Share this page
Another user can scan this QR code to view this page
{/* `media`: filtered as a unit by night mode; see DonatePage. */}
>
}