'use client';
import Link from 'next/link';
import React from 'react';
import { useLoading } from '../LoadingProvider';
export default function PHXLink({ href, children, ...rest }) {
    const { setLoading } = useLoading();
    const handleClick = () => {
        setLoading(true);
    };
    return (React.createElement(Link, { href: href, ...rest, onClick: handleClick }, children));
}
//# sourceMappingURL=link.js.map