2 import { appState } from '../state/AppState.svelte.js';
9 extra_classes = '' } = $props();
11 function handleClick(e) {
14 appState.refreshPage(page, new URLSearchParams(params_hash));
17 const href = $derived.by(() => {
18 const param_str = new URLSearchParams(params_hash).toString();
19 return page + '.html' + (param_str ? '?' : '') + param_str;
23 <a onclick={handleClick} href={href} class={extra_classes}>
24 {#if text_snippet}{@render text_snippet()}{:else}{text}{/if}