import { computed, createBlock, defineComponent, openBlock, unref } from "vue";
import { ScalarIcon } from "@scalar/components";
//#endregion
//#region src/components/ImportCollection/IntegrationLogo.vue
var IntegrationLogo_default = /* @__PURE__ */ defineComponent({
	__name: "IntegrationLogo",
	props: { integration: {} },
	setup(__props) {
		const props = __props;
		/** All available framework logos */
		const availableIntegrationIcons = [
			"adonisjs",
			"astro",
			"dotnet",
			"elysiajs",
			"express",
			"fastapi",
			"fastify",
			"go",
			"hono",
			"laravel",
			"litestar",
			"nestjs",
			"nextjs",
			"nitro",
			"nuxt",
			"platformatic",
			"react",
			"rust",
			"svelte"
		];
		/** Icon for the @scalar/api-reference integration the user is coming from */
		const integrationIcon = computed(() => {
			const defaultIcon = "Openapi";
			const integration = props.integration?.toLocaleLowerCase();
			if (!integration) return defaultIcon;
			const capitalized = integration.charAt(0).toUpperCase() + integration.slice(1);
			return availableIntegrationIcons.includes(integration) ? capitalized : defaultIcon;
		});
		return (_ctx, _cache) => {
			return openBlock(), createBlock(unref(ScalarIcon), {
				class: "h-full w-full rounded-lg",
				logo: integrationIcon.value
			}, null, 8, ["logo"]);
		};
	}
});
//#endregion
export { IntegrationLogo_default as t };

//# sourceMappingURL=IntegrationLogo-B9EDW8db.js.map