import { jsx as _jsx } from "react/jsx-runtime";
import { stopPropagationCallback } from "./utils.js";
import { UiLink } from "../../UiLink/UiLink.js";
export function WithConditionalAnchor({ href, children }) {
    return href ? (_jsx(UiLink, { variant: "secondary", fullWidth: true, href: href, onClick: (e) => {
            stopPropagationCallback(e);
        }, children: children })) : (children);
}
//# sourceMappingURL=WithConditionalAnchor.js.map