--- import { Image } from 'astro:assets'; import { getHighestWeightedLanguage, getLocales, getName } from '../lib/utils/langDriver'; interface Props { category: string; id: string; level: string; name: string; description: string; image: string; button_type: string; button_name: string; has_amount_input?: string; } const lang = await getLocales(Astro.cookies.get('language')?.value ?? await getHighestWeightedLanguage(Astro.request.headers.get('accept-language'))); ---
{Astro.props.id}
{Astro.props.name} | {Astro.props.level}
{Astro.props.description} [more]
{Astro.props.button_name === "nav-researched" ? : }
i
{Astro.props.has_amount_input === "true" && }