--- import { getHomeCopy } from "../i18n/home"; import type { HomeCopy } from "../i18n/home"; import { DEFAULT_LOCALE, localeHashPath, localeHomePath, type Locale, } from "../i18n/locales"; import { DOCS_URL, GITHUB_URL } from "../site"; import Button from "./Button.astro"; import Logo from "./Logo.astro"; type Props = { starsLabel: string; locale?: Locale; copy?: HomeCopy["nav"]; homeHref?: string; }; const { starsLabel } = Astro.props; const locale = Astro.props.locale ?? DEFAULT_LOCALE; const copy = Astro.props.copy ?? getHomeCopy(locale).nav; const homeHref = Astro.props.homeHref ?? localeHomePath(locale); const NAV_LINKS = [ { href: localeHashPath(locale, "demo"), label: copy.product }, { href: localeHashPath(locale, "roster"), label: copy.bots }, { href: localeHashPath(locale, "selfhost"), label: copy.selfHost }, { href: localeHashPath(locale, "open-source"), label: copy.openSource }, { href: DOCS_URL, label: copy.docs, external: true }, ]; const externalAttrs = { target: "_blank", rel: "noreferrer" }; ---