Add classified status

This commit is contained in:
Jon Staab
2026-02-03 17:09:30 -08:00
parent 815dbba497
commit 70c430ddc2
12 changed files with 80 additions and 31 deletions
@@ -1,6 +1,7 @@
<script lang="ts">
import type {ComponentProps} from "svelte"
import {getTagValue, getTagValues} from "@welshman/util"
import {getTag, getTagValue, getTagValues} from "@welshman/util"
import CurrencySymbol from "@lib/components/CurrencySymbol.svelte"
import Content from "@app/components/Content.svelte"
import ContentLinkBlock from "@app/components/ContentLinkBlock.svelte"
@@ -8,11 +9,15 @@
const title = getTagValue("title", props.event.tags)
const images = getTagValues("image", props.event.tags)
const [_, price = 0, currency = "SAT"] = getTag("price", props.event.tags) || []
</script>
<div class="flex flex-col gap-2">
{#if title}
<p class="text-xl">{title}</p>
<p class="text-xl">
{title}
<CurrencySymbol code={currency} />{price}
</p>
{/if}
{#if props.event.content}
<Content {...props} />