import { jsx as _jsx } from "react/jsx-runtime";
// packages/ui/src/internal/initializers/ViteStoresInitializer.tsx
/**
 * @fileoverview Vite stores initializer
 * @description Vite-specific store initialization wrapper
 *
 * @version 0.0.1
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
import { isTest } from '@donotdev/core';
import { BaseStoresInitializer, } from './BaseStoresInitializer';
const VITE_HANDLERS = {
    platform: 'Vite',
};
/**
 * ViteStoresInitializer - Vite platform store initializer
 *
 * Wraps BaseStoresInitializer with Vite-specific handlers.
 * Automatically skips initialization in test environments.
 *
 * @version 0.0.1
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
export function ViteStoresInitializer({ children, customStores, skipStoreInit, }) {
    const skip = skipStoreInit ?? isTest();
    return (_jsx(BaseStoresInitializer, { handlers: VITE_HANDLERS, customStores: customStores, skipStoreInit: skip, children: children }));
}
