UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

11 lines 350 B
import { useContext } from "react"; import { SpaceContext } from "../../context/space-context"; const useSpace = () => { const context = useContext(SpaceContext); if (!context) { throw new Error("useSpace must be used within a SpaceProvider"); } return context; }; export default useSpace; //# sourceMappingURL=useSpace.js.map