"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext, useEffect, useState } from "react";
const context = /*#__PURE__*/ createContext(false);
const { Provider } = context;
context.displayName = "Ssr";
/**
 * @since 6.0.0
 */ export function useSsr() {
    return useContext(context);
}
/**
 * **Client Component**
 *
 * @since 6.0.0
 */ export function SsrProvider(props) {
    const { ssr = false, children } = props;
    const [isSsr, setSsr] = useState(ssr);
    useEffect(()=>{
        setSsr(false);
    }, []);
    return /*#__PURE__*/ _jsx(Provider, {
        value: isSsr,
        children: children
    });
}

//# sourceMappingURL=SsrProvider.js.map