diff --git a/src/actions/index.ts b/src/actions/index.ts index e85aac8..997dea4 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -1,9 +1,10 @@ import { panDown, panLeft, panRight, panUp } from "@/components/workspace/zoom"; import { store } from "@/store"; -import { deselectElement } from "@/store/reducers/editor"; +import { clearElements, deselectElement } from "@/store/reducers/editor"; export const actions = { deselectElement: (elementId: string) => store.dispatch(deselectElement(elementId)), + deselectAllElements: () => store.dispatch(clearElements(false)), panLeft, panDown, panRight,