Add donation functionality to encourage community support, including a footer card on the home page, a highlighted "Apoiar" link in the header, and comprehensive English messages for the donation section to promote transparency and user engagement.
27 lines
708 B
TypeScript
27 lines
708 B
TypeScript
"use client";
|
|
|
|
import { Share2 } from "lucide-react";
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
export function ShareButton() {
|
|
const handleShare = () => {
|
|
if (navigator.share) {
|
|
navigator.share({
|
|
title: "Tibia Trade Pagodera",
|
|
text: "Conheça o marketplace mais seguro para negociar itens no servidor Pagodera!",
|
|
url: window.location.origin,
|
|
});
|
|
} else {
|
|
navigator.clipboard.writeText(window.location.origin);
|
|
alert("Link copiado para a área de transferência!");
|
|
}
|
|
};
|
|
|
|
return (
|
|
<Button size="lg" variant="outline" onClick={handleShare}>
|
|
<Share2 className="mr-2 h-5 w-5" />
|
|
Compartilhar Projeto
|
|
</Button>
|
|
);
|
|
}
|