Feat/BOOK-529 update GLA design mystay * feat(BOOK-529): update gla design on my stay * feat(BOOK-529): open gla modal if error * feat(BOOK-529): add inline accordion to storybook * feat(529): move errormessage below message * feat(529): update infomodal * feat(BOOK-529): update infomodal * feat(BOOK-529): hide guarantee info for adding ancillaries if prepaid * feat(BOOK-529): update width on info dialog * feat(BOOK-529): fix alignment * feat(BOOK-529): check if member price * feat(BOOK-529): refactor msg * feat(BOOK-529): refactor terms and conditions to own component * feat(BOOK-529): clean up confirmation step Approved-by: Christel Westerberg
23 lines
565 B
TypeScript
23 lines
565 B
TypeScript
"use client"
|
|
|
|
import { useMyStayStore } from "@/stores/my-stay"
|
|
|
|
import Price from "../PriceType/Price"
|
|
|
|
import type { PriceType as _PriceType } from "@/types/components/hotelReservation/myStay/myStay"
|
|
|
|
export default function TotalPrice() {
|
|
const { bookedRoom, totalPrice } = useMyStayStore((state) => ({
|
|
bookedRoom: state.bookedRoom,
|
|
totalPrice: state.totalPrice,
|
|
rooms: state.rooms,
|
|
}))
|
|
return (
|
|
<Price
|
|
isCancelled={bookedRoom.isCancelled}
|
|
isMember={bookedRoom.rateDefinition.isMemberRate}
|
|
price={totalPrice}
|
|
/>
|
|
)
|
|
}
|