UNPKG

@scayle/storefront-nuxt

Version:

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

14 lines (13 loc) 607 B
import type { Ref } from 'vue'; import type { PublicShopConfig } from '../../types/module.js'; /** * Provides a reactive reference to the current shop configuration. * * This composable retrieves the current shop configuration from the Nuxt app instance. * It then uses [`useState`](https://nuxt.com/docs/api/composables/use-state) to * create a reactive reference to this configuration, allowing components * to reactively update when the current shop changes. * * @returns A reactive `ref` to the current shop's configuration. */ export declare const useCurrentShop: () => Ref<PublicShopConfig>;