MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / generateClientAction

Function generateClientAction

src/generators/clientAction.ts:3–13  ·  view source on GitHub ↗
(config: WorkspaceConfiguration)

Source from the content-addressed store, hash-verified

1import type { WorkspaceConfiguration } from "vscode";
2
3export const generateClientAction = (config: WorkspaceConfiguration) => {
4 const customClientAction = config.get("clientAction");
5 if (customClientAction) {
6 return `${customClientAction}\n`;
7 }
8 return [
9 "export const clientAction = async ({ request }: ClientActionFunctionArgs) => {",
10 " return null;",
11 "};",
12 ].join("\n");
13};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected