1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-24 15:44:21 +00:00
festa/components/editable/EditingContext.ts

10 lines
336 B
TypeScript
Raw Normal View History

2022-06-08 16:00:39 +00:00
import { createStateContext } from "../../utils/stateContext";
/**
* {@link createStateContext State context} representing the editing state of a form.
*
* If `true`, the components should be editable, while if `false`, the components should preview their contents.
*/
export const EditingContext = createStateContext<boolean>()