import { useActionQuery } from "@agent-native/core/client/hooks"; import { useT } from "@agent-native/core/client/i18n"; import { docsUrl } from "@agent-native/core/shared"; import { OrgSwitcher } from "@agent-native/toolkit/app/org"; import { useTheme } from "next-themes"; import { Link } from "react-router"; export function meta() { return [{ title: "{{APP_TITLE}}" }]; } export default function HomePage() { const { resolvedTheme, setTheme } = useTheme(); const t = useT(); const isDark = resolvedTheme === "dark"; const { data } = useActionQuery("hello", { name: "{{APP_TITLE}}" }); return (
{/* The account menu holds Log out; Settings has no Log out row. */}

{t("home.title")}

{t("home.intro")}{" "} app/routes/home.tsx

{t("home.actionCardTitle")}

{data?.message ?? t("home.loadingAction")}

{t("home.docsTitle")}

{t("home.docsDescription")}

{t("home.settingsTitle")}

{t("home.settingsDescription")}

{t("settings.agentTitle")}

{t("settings.agentDescription")}

); }