mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-02 12:13:05 +00:00
Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # web/src/components/BottomPickSheet.tsx # web/src/components/SidebarFooter.tsx # web/src/components/ui/card.tsx # web/src/components/ui/confirm-dialog.tsx # web/src/pages/ChatPage.tsx
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { Typography } from "@nous-research/ui/ui/components/typography/index";
|
|
import type { StatusResponse } from "@/lib/api";
|
|
import { cn } from "@/lib/utils";
|
|
import { useI18n } from "@/i18n";
|
|
|
|
export function SidebarFooter({ status }: SidebarFooterProps) {
|
|
const { t } = useI18n();
|
|
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"flex shrink-0 items-center justify-between gap-2",
|
|
"px-5 py-2.5",
|
|
"border-t border-current/10",
|
|
)}
|
|
>
|
|
<Typography
|
|
className="font-mono-ui text-xs tabular-nums tracking-[0.08em] text-text-tertiary lowercase"
|
|
>
|
|
{status?.version != null ? `v${status.version}` : "—"}
|
|
</Typography>
|
|
|
|
<a
|
|
href="https://nousresearch.com"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className={cn(
|
|
"font-mondwest text-display text-xs tracking-[0.12em] text-midground",
|
|
"transition-opacity hover:opacity-90",
|
|
"focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-midground/40",
|
|
)}
|
|
style={{ mixBlendMode: "plus-lighter" }}
|
|
>
|
|
{t.app.footer.org}
|
|
</a>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
interface SidebarFooterProps {
|
|
status: StatusResponse | null;
|
|
}
|