anyone-oslo/pages

View on GitHub
app/javascript/components/PageForm/usePageFormContext.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createContext, useContext } from "react";
import * as PageEditor from "../../types/PageEditor";

export const PageFormContext = createContext<PageEditor.Context>(null);

export default function usePageFormContext() {
  return useContext(PageFormContext);
}