feat: init
This commit is contained in:
23
apps/web/ce/hooks/editor/use-extended-editor-config.ts
Normal file
23
apps/web/ce/hooks/editor/use-extended-editor-config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { useCallback } from "react";
|
||||
// plane imports
|
||||
import type { TExtendedFileHandler } from "@plane/editor";
|
||||
|
||||
export type TExtendedEditorFileHandlersArgs = {
|
||||
projectId?: string;
|
||||
workspaceSlug: string;
|
||||
};
|
||||
|
||||
export type TExtendedEditorConfig = {
|
||||
getExtendedEditorFileHandlers: (args: TExtendedEditorFileHandlersArgs) => TExtendedFileHandler;
|
||||
};
|
||||
|
||||
export const useExtendedEditorConfig = (): TExtendedEditorConfig => {
|
||||
const getExtendedEditorFileHandlers: TExtendedEditorConfig["getExtendedEditorFileHandlers"] = useCallback(
|
||||
() => ({}),
|
||||
[]
|
||||
);
|
||||
|
||||
return {
|
||||
getExtendedEditorFileHandlers,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user