import { longDateWithYearFormat } from "@scandic-hotels/common/constants/dateFormats" import { dt } from "@scandic-hotels/common/dt" import { getNumberOfNights } from "@scandic-hotels/common/utils/dateFormatting" import { Typography } from "@scandic-hotels/design-system/Typography" import { RoomPackageCodeEnum } from "@scandic-hotels/trpc/enums/roomFilter" import { getIntl } from "@/i18n" import { getLang } from "@/i18n/serverContext" import styles from "./footer.module.css" import type { FooterProps } from "@/types/components/hotelReservation/myStay/receipt" export default async function Footer({ booking, room }: FooterProps) { const intl = await getIntl() const lang = await getLang() const petRoomPackage = booking.packages.find( (p) => p.code === RoomPackageCodeEnum.PET_ROOM ) return (