'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import { useParams as useNextParams } from 'next/navigation.js';
import React, { createContext, use } from 'react';
const Context = /*#__PURE__*/ createContext({});
/**
 * @deprecated
 * The ParamsProvider is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
 * @example
 * ```tsx
 * import { useParams } from 'next/navigation'
 * ```
 */ export const ParamsProvider = ({ children })=>{
    const params = useNextParams();
    return /*#__PURE__*/ _jsxDEV(Context, {
        value: params,
        children: children
    }, void 0, false, {
        fileName: "src/providers/Params/index.tsx",
        lineNumber: 21,
        columnNumber: 10
    }, this);
};
/**
 * @deprecated
 * The `useParams` hook is deprecated and will be removed in the next major release. Instead, use the `useParams` hook from `next/navigation` directly. See https://github.com/payloadcms/payload/pull/9581.
 * @example
 * ```tsx
 * import { useParams } from 'next/navigation'
 * ```
 */ export const useParams = ()=>use(Context);

//# sourceMappingURL=index.js.map