Files
web/apps/scandic-web/components/HotelReservation/MyStay/ReferenceCard/Actions/index.tsx
2025-04-28 12:40:52 +00:00

17 lines
423 B
TypeScript

"use client"
import { useMyStayStore } from "@/stores/my-stay"
import Cancelled from "./Cancelled"
import NotCancelled from "./NotCancelled"
import styles from "./actions.module.css"
export default function Actions() {
const isCancelled = useMyStayStore((state) => state.bookedRoom.isCancelled)
return (
<div className={styles.actionArea}>
{isCancelled ? <Cancelled /> : <NotCancelled />}
</div>
)
}