feat: break apart loading of room availability and hotel card
feat: add skeletons
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
"use client"
|
||||
|
||||
import { create } from "zustand"
|
||||
|
||||
interface RoomAvailabilityState {
|
||||
noRoomsAvailable: boolean
|
||||
setNoRoomsAvailable: () => void
|
||||
setRoomsAvailable: () => void
|
||||
}
|
||||
|
||||
const useRoomAvailableStore = create<RoomAvailabilityState>((set) => ({
|
||||
noRoomsAvailable: false,
|
||||
setNoRoomsAvailable: () => set(() => ({ noRoomsAvailable: true })),
|
||||
setRoomsAvailable: () => set(() => ({ noRoomsAvailable: false })),
|
||||
}))
|
||||
|
||||
export default useRoomAvailableStore
|
||||
Reference in New Issue
Block a user