import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { useRouter } from "./router";
const Link = (props) => {
const router = useRouter();
// Simple prefetching for now will work only with cache headers
// fetch(getCssUrl(props.href));
// fetch(getCssUrl(props.href).replace("css", "jsx"));
if (props && props.onClick) {
export const StyleLink = ({ children, className, activeClassName, ...props }) => {
const { pathname } = useRouter();
const classNames = pathname === props.href ? [activeClassName, className] : [className];