'use client';
import Cookies from 'js-cookie';
import { useSearchParams } from 'next/navigation';
import { useEffect } from 'react';
export default function CallbackUrlSetter({ path }) {
    const searchParams = useSearchParams();
    useEffect(() => {
        const callbackUrl = encodeURIComponent(path + '?' + searchParams.toString());
        Cookies.set('callbackUrl', callbackUrl, { expires: 1, path: '/' });
    }, [path, searchParams]);
    return null;
}
//# sourceMappingURL=CallbackUrlSetter.js.map