import { usePluginManager } from '@kubb/core/hooks' import { createReactGenerator } from '@kubb/plugin-oas/generators' import { useOas } from '@kubb/plugin-oas/hooks' import { getBanner, getFooter } from '@kubb/plugin-oas/utils' import { File } from '@kubb/react-fabric' import { Operations } from '../components/Operations' import type { PluginClient } from '../types' export const operationsGenerator = createReactGenerator({ name: 'client', Operations({ operations, plugin }) { const { key: pluginKey, options: { output }, } = plugin const pluginManager = usePluginManager() const oas = useOas() const name = 'operations' const file = pluginManager.getFile({ name, extname: '.ts', pluginKey }) return ( ) }, })