feat(SW-1944) Update to correct URL to my stay (for my pages/my stays and confirmation page) * feat(SW-1944) Update to correct URL to my stay (for my pages/my stays and confirmation page) * feat(SW-1944) updated to RefId * feat(SW-1944) updated myStay path * feat(SW-1944) updated refId check Approved-by: Christian Andolf
29 lines
738 B
TypeScript
29 lines
738 B
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { EditIcon } from "@/components/Icons"
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
import Link from "@/components/TempDesignSystem/Link"
|
|
|
|
import type { ManageBookingProps } from "@/types/components/hotelReservation/bookingConfirmation/actions/manageBooking"
|
|
|
|
export default function ManageBooking({ bookingUrl }: ManageBookingProps) {
|
|
const intl = useIntl()
|
|
|
|
return (
|
|
<Button
|
|
asChild
|
|
intent="text"
|
|
size="small"
|
|
theme="base"
|
|
variant="icon"
|
|
wrapping
|
|
>
|
|
<Link color="none" href={bookingUrl} weight="bold">
|
|
<EditIcon />
|
|
{intl.formatMessage({ id: "Manage booking" })}
|
|
</Link>
|
|
</Button>
|
|
)
|
|
}
|