feat(SW-864): add to calendar functionality

This commit is contained in:
Simon Emanuelsson
2024-11-28 14:22:31 +01:00
parent f896f8df76
commit 33de623f41
14 changed files with 233 additions and 47 deletions

View File

@@ -0,0 +1,9 @@
import type { EventAttributes } from "ics"
import type { RouterOutput } from "@/lib/trpc/client"
export interface AddToCalendarProps {
checkInDate: RouterOutput["booking"]["confirmation"]["booking"]["checkInDate"]
event: EventAttributes
hotelName: RouterOutput["booking"]["confirmation"]["hotel"]["name"]
}