Add affiliate prompt branding option

This commit is contained in:
2025-03-21 12:57:53 +01:00
parent d894246a38
commit 7aff2a2ead
7 changed files with 312 additions and 150 deletions

View File

@@ -3,10 +3,18 @@ export let on = false
export let group_first = false
export let group_middle = false
export let group_last = false
export let action = (e: MouseEvent) => {}
const click = (e: MouseEvent) => {
on = !on
if (typeof action === "function") {
action(e)
}
}
</script>
<button
on:click={() => on = !on}
on:click={click}
type="button"
class="button"
class:button_highlight={on}