mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Add httpd-client api library
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -8,16 +8,14 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts" strictEvents>
|
||||
import type { State } from "@app/lib/cobs";
|
||||
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { twemoji } from "@app/lib/utils";
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
|
||||
type T = $$Generic<State | string | number>;
|
||||
type T = $$Generic;
|
||||
|
||||
export let items: Item<T>[];
|
||||
export let selected: string | null = null;
|
||||
export let selected: T | null = null;
|
||||
|
||||
const dispatch = createEventDispatcher<{ select: Item<T> }>();
|
||||
const onSelect = (item: Item<T>) => {
|
||||
|
||||
Reference in New Issue
Block a user