feat: refactor of my stay
This commit is contained in:
committed by
Simon.Emanuelsson
parent
b5deb84b33
commit
ec087a3d15
@@ -0,0 +1,16 @@
|
||||
"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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user