2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2020-10-14 08:17:23 +00:00
|
|
|
interface AppAction {
|
|
|
|
anchor: React.RefObject<HTMLDivElement>;
|
|
|
|
docked: boolean;
|
|
|
|
setDocked: (docked: boolean) => void;
|
|
|
|
}
|
|
|
|
const AppActionContext = React.createContext<AppAction>({
|
|
|
|
anchor: undefined,
|
|
|
|
docked: true,
|
|
|
|
setDocked: () => undefined
|
|
|
|
});
|
|
|
|
export const useAppAction = () => React.useContext(AppActionContext);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
export default AppActionContext;
|