Files
DataStack/components/layout/Footer.tsx
T
Team Dark Devil 177ed4a844 refactor(auth): standardize session management and security
- Centralize secret retrieval using `getAdminSessionSecret`
- Replace manual session parsing with `verifyRequestAdminSession` utility
- Tighten API validation and improve security headers handling
- Enforce environment variable security for production deployments
2026-11-18 05:18:55 +06:00

24 lines
855 B
TypeScript

import Link from 'next/link';
import React from 'react';
interface FooterProps {
isAdmin?: boolean;
}
export const Footer: React.FC<FooterProps> = ({ isAdmin = false }) => {
if (isAdmin) return null;
return (
<footer className="shrink-0 min-h-9 bg-[var(--bg-activity)] border-t border-[var(--border)] px-4 sm:px-6 py-2 flex flex-wrap items-center justify-between gap-2 text-[11px] text-[var(--text-dim)] select-none">
<span>DataStack</span>
<nav aria-label="Footer navigation" className="flex items-center gap-5">
<Link href="/#features" className="hover:text-[var(--text-muted)]">Features</Link>
<Link href="/#sdk" className="hover:text-[var(--text-muted)]">SDK</Link>
<Link href="/#about" className="hover:text-[var(--text-muted)]">About</Link>
</nav>
</footer>
);
};
export default Footer;