2 import { refresh_page } from '../lib/stores.js';
5 export let params_hash = {};
6 export let extra_classes = '';
7 let href = page + '.html';
9 function handleClick() {
10 refresh_page(page, new URLSearchParams(params_hash));
14 let param_str = new URLSearchParams(params_hash).toString();
15 href = page + '.html' + (param_str ? '?' : '') + param_str;
19 <a on:click|preventDefault|stopPropagation={handleClick} href={href} class={extra_classes}>