gitscope
← marzneshin / v0.6.1 / dashboard/src/features/support-us/donation-button.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/support-us/donation-button.tsx · TypeScript
Blame Raw
 1import { useTranslation } from "react-i18next";
 2import { Button } from "@marzneshin/components";
 3import type { FC } from "react";
 4
 5export const DonationButton: FC<{ donationLink: string }> = ({ donationLink }) => {
 6    const { t } = useTranslation();
 7    return (
 8        <Button size="sm" variant="secondary" className="w-fit" asChild>
 9            <a
10                href={donationLink}
11                target="_blank"
12                rel="noopener noreferrer"
13            >
14                {t('support-us.donate')}
15            </a>
16        </Button>
17    )
18}