import { typescriptFileProvider } from '@baseplate-dev/core-generators';
import { reactComponentsImportsProvider } from '@baseplate-dev/react-generators';
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
import { AUTH0_AUTH0_PAGES_PATHS } from './template-paths.js';
import { AUTH0_AUTH0_PAGES_TEMPLATES } from './typed-templates.js';
const auth0Auth0PagesRenderers = createProviderType('auth0-auth0-pages-renderers');
const auth0Auth0PagesRenderersTask = createGeneratorTask({
    dependencies: {
        paths: AUTH0_AUTH0_PAGES_PATHS.provider,
        reactComponentsImports: reactComponentsImportsProvider,
        typescriptFile: typescriptFileProvider,
    },
    exports: { auth0Auth0PagesRenderers: auth0Auth0PagesRenderers.export() },
    run({ paths, reactComponentsImports, typescriptFile }) {
        return {
            providers: {
                auth0Auth0PagesRenderers: {
                    pagesGroup: {
                        render: (options) => typescriptFile.renderTemplateGroup({
                            group: AUTH0_AUTH0_PAGES_TEMPLATES.pagesGroup,
                            paths,
                            importMapProviders: {
                                reactComponentsImports,
                            },
                            ...options,
                        }),
                    },
                },
            },
        };
    },
});
export const AUTH0_AUTH0_PAGES_RENDERERS = {
    provider: auth0Auth0PagesRenderers,
    task: auth0Auth0PagesRenderersTask,
};
//# sourceMappingURL=template-renderers.js.map