Sha256: dc1fc205bfb49928cec6dc6bf4814702c23e6287ad3b3c23d5fe8a7089d76457

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

import { createContext, useContext } from "react";
import { State, Action, Options } from "./useImageEditor";

type Context = {
  state: State;
  dispatch: React.Dispatch<Action>;
  options: Options;
};

export const ImageEditorContext = createContext<Context>(null);

export default function useImageEditorContext() {
  return useContext(ImageEditorContext);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pages_core-3.15.5 app/javascript/components/ImageEditor/useImageEditorContext.ts