feat(web): DiscoverResultCard attribution prop for M5c suggestions
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
subtitle,
|
||||
imageUrl,
|
||||
state,
|
||||
attribution,
|
||||
onRequest,
|
||||
}: {
|
||||
kind: DiscoverCardKind;
|
||||
@@ -19,6 +20,7 @@
|
||||
subtitle?: string;
|
||||
imageUrl?: string;
|
||||
state: DiscoverCardState;
|
||||
attribution?: string;
|
||||
onRequest?: () => void;
|
||||
} = $props();
|
||||
|
||||
@@ -55,6 +57,11 @@
|
||||
{#if subtitle}
|
||||
<div class="subtitle text-sm text-text-secondary">{subtitle}</div>
|
||||
{/if}
|
||||
{#if attribution}
|
||||
<div class="attribution text-xs italic text-text-secondary" data-testid="attribution">
|
||||
{attribution}
|
||||
</div>
|
||||
{/if}
|
||||
<div class="badge-row" data-testid="badge-row">
|
||||
{#if state === 'kept'}
|
||||
<span class="kept-pill" role="status">Kept</span>
|
||||
|
||||
Reference in New Issue
Block a user