import { createContext } from "@lit/context";

//#region src/gui/timeline/timelineEditingContext.ts
const timelineEditingContext = createContext(Symbol("timelineEditingContext"));
/**
* Create a timeline editing context with helper methods.
*/
function createTimelineEditingContext() {
	const context = {
		state: { mode: "idle" },
		setState: (state) => {
			context.state = state;
		},
		isEditing: () => context.state.mode !== "idle",
		canInteract: () => {
			return context.state.mode === "idle";
		}
	};
	return context;
}

//#endregion
export { createTimelineEditingContext, timelineEditingContext };
//# sourceMappingURL=timelineEditingContext.js.map