peppa/apps/web/components/Footer.tsx
Асель 28fbde4add PEP-38: console foundation — Tailwind v4, shadcn/ui components, dark theme, three-panel layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:21:43 +05:00

26 lines
950 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { loadEnv } from "@peppa/shared";
/** Build stamp: which Peppa version and commit is running. */
export function Footer() {
const version = process.env.NEXT_PUBLIC_PEPPA_VERSION;
const commit = process.env.NEXT_PUBLIC_PEPPA_COMMIT;
const full = process.env.NEXT_PUBLIC_PEPPA_COMMIT_FULL;
const date = process.env.NEXT_PUBLIC_PEPPA_COMMIT_DATE;
const dirty = process.env.NEXT_PUBLIC_PEPPA_DIRTY;
return (
<footer className="px-4 py-6 text-center text-xs text-muted-foreground">
Peppa v{version}
{commit && (
<>
{" · "}
<a href={`${loadEnv().GITEA_URL}/peppa-bot/peppa/commit/${full}`} className="mono">
{commit}
</a>
{dirty && <span title="Собрано с незакоммиченными изменениями"> +изменения</span>}
</>
)}
{date && ` · ${new Date(date).toLocaleDateString("ru-RU")}`}
</footer>
);
}