Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import { createContext } from "react"
|
||||
|
||||
import type { DetailsStore } from "@/types/contexts/enter-details"
|
||||
|
||||
export const DetailsContext = createContext<DetailsStore | null>(null)
|
||||
@@ -1,13 +0,0 @@
|
||||
import { createContext, useContext } from "react"
|
||||
|
||||
import type { RoomContextValue } from "@/types/contexts/details/room"
|
||||
|
||||
export const RoomContext = createContext<RoomContextValue | null>(null)
|
||||
|
||||
export function useRoomContext() {
|
||||
const ctx = useContext(RoomContext)
|
||||
if (!ctx) {
|
||||
throw new Error("Missing context value [RoomContext]")
|
||||
}
|
||||
return ctx
|
||||
}
|
||||
Reference in New Issue
Block a user