This commit is contained in:
@@ -2,7 +2,6 @@ import Link from "next/link";
|
||||
import { useLocale, useTranslations } from "next-intl";
|
||||
|
||||
import { Container } from "@/components/layout/container";
|
||||
import { buildAdminUrl } from "@/lib/admin-routing";
|
||||
import { getLocalizedPath } from "@/lib/locale";
|
||||
|
||||
const navItems = [
|
||||
@@ -12,11 +11,7 @@ const navItems = [
|
||||
{ key: "contact", path: "/contact" },
|
||||
];
|
||||
|
||||
type SiteFooterProps = {
|
||||
isAdmin?: boolean;
|
||||
};
|
||||
|
||||
export function SiteFooter({ isAdmin = false }: SiteFooterProps) {
|
||||
export function SiteFooter() {
|
||||
const locale = useLocale();
|
||||
const tNav = useTranslations("navigation");
|
||||
const tFooter = useTranslations("footer");
|
||||
@@ -34,11 +29,6 @@ export function SiteFooter({ isAdmin = false }: SiteFooterProps) {
|
||||
{tNav(item.key)}
|
||||
</Link>
|
||||
))}
|
||||
{isAdmin ? (
|
||||
<a href={buildAdminUrl()} className="text-muted-foreground hover:text-foreground">
|
||||
{tNav("admin")}
|
||||
</a>
|
||||
) : null}
|
||||
</nav>
|
||||
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
|
||||
<p className="text-xs text-muted-foreground/80">
|
||||
|
||||
Reference in New Issue
Block a user