'use client'
import { Button } from '@/components/ui/button'
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '@/components/ui/dialog'
import {
Drawer,
DrawerContent,
DrawerDescription,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
} from '@/components/ui/drawer'
import { useMediaQuery } from '@/lib/hooks'
import { Heart } from 'lucide-react'
import { useState } from 'react'
type Props = {
donationUrl: string
}
export function DonationButton({ donationUrl }: Props) {
const isDesktop = useMediaQuery('(min-width: 768px)')
return isDesktop ? (
Spliit is offered for free, but costs money and energy. If you like the app, you can choose to support it by buying me (Sebastien) a coffee with a one-time small donation.
By supporting Spliit:
You will be redirected to Stripe, our payment provider, where you can choose an amount to donate and complete the payment.