/** * This file is part of the SplendidBear Websites' projects. * * Copyright (c) 2026 @ www.splendidbear.org * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Fragment, useState } from 'react'; import { OnlinePlayersDialog } from '@mine-components'; const WaitingOverlayContent = ({ shareUrl, currentGameAssoc }) => { const [dialogOpen, setDialogOpen] = useState(false); return (
Invite a Friend

Share this link with your opponent

OR
Challenge a Player

Browse online players and challenge them

setDialogOpen(false)} currentGameAssoc={currentGameAssoc} />
); }; const ShareLinkBox = ({ url }) => { const [copied, setCopied] = useState(false); const handleCopy = () => { navigator.clipboard.writeText(url).then(() => { setCopied(true); setTimeout(() => setCopied(false), 2500); }).catch(() => {}); }; return (
e.currentTarget.querySelector('input').select()}> e.target.select()} />
); }; export default WaitingOverlayContent;