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

9 lines
336 B
TypeScript

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>()