mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Interactive Tools Enhancements Support (#5115)
* added `useInteractive` hook and exposed to `PluginApi` * made `SceneFileInfoPanel` patchable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user