diff --git a/src/components/FindCard.astro b/src/components/FindCard.astro index 27255dd..9c4ee0f 100644 --- a/src/components/FindCard.astro +++ b/src/components/FindCard.astro @@ -6,13 +6,17 @@ import SourceBadge from './SourceBadge.astro'; interface Props { item: FindItem; - inList?: boolean; + unused?: boolean; + joke?: boolean; + quote?: boolean; capturedAt?: Date; availableTags?: string[]; } -const { item, inList, capturedAt, availableTags = [] } = Astro.props; +const { item, unused, joke, quote, capturedAt, availableTags = [] } = Astro.props; const hero = findHero(item.id); -const showInListAttr = import.meta.env.DEV && inList !== undefined; +const showUnusedAttr = import.meta.env.DEV && unused !== undefined; +const showJokeAttr = import.meta.env.DEV && joke !== undefined; +const showQuoteAttr = import.meta.env.DEV && quote !== undefined; const selectedTags: string[] = item.data.editorialTags ?? []; const selectedSet = new Set(selectedTags); @@ -34,7 +38,9 @@ function host(url: string) {
{import.meta.env.DEV && (
+{import.meta.env.DEV && ( + +)} +