[Haik]: export ElementSelectionContext from useElementSelection

This commit is contained in:
haikdc
2026-04-18 17:31:33 -07:00
parent 433c10c993
commit d2004c2933
2 changed files with 2 additions and 1 deletions
@@ -1,5 +1,6 @@
import React, { useState, useRef, useCallback, useMemo } from 'react';
import { type SelectedElement } from './SelectedElement';
import { ElementSelectionContext } from './useElementSelection';
export const ElementSelectionProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const [selectMode, setSelectMode] = useState(false);
@@ -22,7 +22,7 @@ interface ElementSelectionContextValue {
iframeRef: RefObject<HTMLIFrameElement | null>;
}
const ElementSelectionContext = createContext<ElementSelectionContextValue | null>(null);
export const ElementSelectionContext = createContext<ElementSelectionContextValue | null>(null);
export function useElementSelection() {
return useContext(ElementSelectionContext);