/**
 * This file is used as a Vue app entrypoint for Astro's Vue integration.
 *
 * Purpose:
 * - It provides a place to register Vue plugins (in this case, the Nuxt UI plugin)
 *   before any Vue components are mounted by Astro.
 * - The `setup` function is invoked by Astro when initializing the Vue app context;
 *   it receives the app instance as its argument.
 * - By calling `app.use(ui)`, it globally installs the Nuxt UI plugin so that all
 *   Vue components in the Astro project can use components and features from `@nuxt/ui`.
 *
 * You may add further plugins, provide/injects, or global configuration for Vue here as needed.
 */

import type { App } from 'vue';
import ui from '@nuxt/ui/vue-plugin';

export default async function setup(app: App) {
  app.use(ui);
}
