import { installPluginFromDirectory } from "@yaakapp-internal/plugins"; import { useFastMutation } from "./useFastMutation"; export function useInstallPlugin() { return useFastMutation({ mutationKey: ["install_plugin"], mutationFn: async (directory: string) => { await installPluginFromDirectory(directory); }, }); }