import type { EventAttributes } from "ics"

import type { RouterOutput } from "@/lib/trpc/client"

export interface AddToCalendarProps {
  checkInDate: NonNullable<
    RouterOutput["booking"]["get"]
  >["booking"]["checkInDate"]
  event: EventAttributes
  hotelName: NonNullable<RouterOutput["booking"]["get"]>["hotel"]["name"]
  renderButton: (onPress: () => Promise<void>) => React.ReactNode
}
