[WIKI-699] refactor: editor config (#7850)

This commit is contained in:
Vipin Chaudhary 2025-10-01 15:00:10 +05:30 committed by GitHub
parent a69c6f1b9c
commit b37e453b32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 3 deletions

View 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,
};
};