mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[Haik]: export ElementSelectionContext from useElementSelection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user