"use client"; import { CalendarPlus, Download } from "lucide-react"; import { buildGoogleCalendarUrl, buildOutlookCalendarUrl } from "@/lib/calendar"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; type Props = { className?: string; variant?: "default" | "outline" | "inverse"; }; export function AddToCalendar({ className, variant = "outline" }: Props) { const googleUrl = buildGoogleCalendarUrl(); const outlookUrl = buildOutlookCalendarUrl(); const buttonClass = variant === "inverse" ? "rounded-full border-white/30 bg-transparent text-white hover:bg-white/10" : variant === "default" ? "rounded-full bg-[#ffb300] text-[#0f0404] hover:bg-[#ffb300]/90" : "rounded-full"; return ( Google Calendar Outlook Apple / iCal (.ics) ); }