import { typescriptFileProvider } from '@baseplate-dev/core-generators';
import { graphqlImportsProvider, reactComponentsImportsProvider, } from '@baseplate-dev/react-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
import { LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_PATHS } from './template-paths.js';
import { LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES } from './typed-templates.js';
const localAuthAdminAdminCrudManageRolesActionRenderers = createProviderType('local-auth-admin-admin-crud-manage-roles-action-renderers');
const localAuthAdminAdminCrudManageRolesActionRenderersTask = createGeneratorTask({
    dependencies: {
        graphqlImports: graphqlImportsProvider,
        paths: LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_PATHS.provider,
        reactComponentsImports: reactComponentsImportsProvider,
        typescriptFile: typescriptFileProvider,
    },
    exports: {
        localAuthAdminAdminCrudManageRolesActionRenderers: localAuthAdminAdminCrudManageRolesActionRenderers.export(),
    },
    run({ graphqlImports, paths, reactComponentsImports, typescriptFile }) {
        return {
            providers: {
                localAuthAdminAdminCrudManageRolesActionRenderers: {
                    roleManagerDialog: {
                        render: (options) => typescriptFile.renderTemplateFile({
                            template: LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_TEMPLATES.roleManagerDialog,
                            destination: paths.roleManagerDialog,
                            importMapProviders: {
                                graphqlImports,
                                reactComponentsImports,
                            },
                            ...options,
                        }),
                    },
                },
            },
        };
    },
});
export const LOCAL_AUTH_ADMIN_ADMIN_CRUD_MANAGE_ROLES_ACTION_RENDERERS = {
    provider: localAuthAdminAdminCrudManageRolesActionRenderers,
    task: localAuthAdminAdminCrudManageRolesActionRenderersTask,
};
//# sourceMappingURL=template-renderers.js.map