useCreateNodeKey.ts 265 Bytes
import type { NodeItemConfigType } from '../types/node';

export function useCreateNodeKey(scope: string) {
  return {
    key: scope,
    createComponentKey: `VC_CREATE_${scope}`,
    connectionComponentKey: `VCC_CONNECTION_${scope}`,
  } as NodeItemConfigType;
}