'use client';
import { useRouter } from 'next/navigation';
export const PHXUseDirectLink = () => {
    const router = useRouter();
    const directLink = (pushLink, options) => {
        if (pushLink) {
            const method = (options === null || options === void 0 ? void 0 : options.replace) ? 'replace' : 'push';
            router[method](pushLink);
        }
    };
    return directLink;
};
//# sourceMappingURL=direct-link.js.map