import { useActionQuery } from "@agent-native/core/client/hooks"; import { useT } from "@agent-native/core/client/i18n"; import { useTheme } from "next-themes"; import { Link } from "react-router"; export function meta() { return [{ title: "{{APP_TITLE}}" }]; } export default function IndexPage() { const { resolvedTheme, setTheme } = useTheme(); const t = useT(); const isDark = resolvedTheme === "dark"; const { data } = useActionQuery("hello", { name: "{{APP_TITLE}}" }); return (
{t("home.intro")}{" "}
app/routes/_index.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")}