"use client" import { useIntl } from "react-intl" import { useReactToPrint } from "react-to-print" import { DownloadIcon } from "@/components/Icons" import Button from "@/components/TempDesignSystem/Button" import type { DownloadInvoiceProps } from "@/types/components/hotelReservation/bookingConfirmation/actions/downloadInvoice" export default function DownloadInvoice({ mainRef }: DownloadInvoiceProps) { const intl = useIntl() const reactToPrintFn = useReactToPrint({ contentRef: mainRef }) function downloadBooking() { reactToPrintFn() } return ( ) }