Interactive Tools Enhancements Support (#5115)

* added `useInteractive` hook and exposed to `PluginApi`
* made `SceneFileInfoPanel` patchable
This commit is contained in:
blackx69
2024-08-05 19:34:27 -05:00
committed by GitHub
parent c79f299d1a
commit c8d4dacffd
4 changed files with 60 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useState } from "react";
import React, { useCallback, useContext, useEffect, useState } from "react";
import { ConfigurationContext } from "../Config";
import { useLocalForage } from "../LocalForage";
import { Interactive as InteractiveAPI } from "./interactive";
@@ -208,4 +208,7 @@ export const InteractiveProvider: React.FC = ({ children }) => {
);
};
export const useInteractive = () => {
return useContext(InteractiveContext);
};
export default InteractiveProvider;