fix: add missing site-footer component and remove brand-icons dependency

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-16 06:57:31 +02:00
parent 038ce3f556
commit 5c8612e327
2 changed files with 34 additions and 4 deletions

View File

@@ -26,8 +26,6 @@ import {
type LucideIcon,
} from "lucide-react"
import { Apple, Google } from "@/components/brand-icons"
export type Icon = LucideIcon
export const Icons = {
@@ -55,6 +53,4 @@ export const Icons = {
gitHub: Github,
twitter: Twitter,
check: Check,
google: Google,
apple: Apple,
}

View File

@@ -0,0 +1,34 @@
import { appConfig } from "@/lib/config"
export function SiteFooter() {
return (
<footer className="border-t py-6 md:py-0">
<div className="container flex flex-col items-center justify-between gap-4 md:h-14 md:flex-row">
<p className="text-center text-sm leading-loose text-muted-foreground md:text-left">
© {new Date().getFullYear()} {appConfig.name}. Todos os direitos reservados.
</p>
{(appConfig.supportEmail || appConfig.supportWhatsapp) && (
<p className="text-center text-sm text-muted-foreground md:text-right">
Suporte:{" "}
{appConfig.supportEmail && (
<a href={`mailto:${appConfig.supportEmail}`} className="underline underline-offset-4 hover:text-foreground">
{appConfig.supportEmail}
</a>
)}
{appConfig.supportEmail && appConfig.supportWhatsapp && " · "}
{appConfig.supportWhatsapp && (
<a
href={`https://wa.me/${appConfig.supportWhatsapp}`}
target="_blank"
rel="noreferrer"
className="underline underline-offset-4 hover:text-foreground"
>
WhatsApp
</a>
)}
</p>
)}
</div>
</footer>
)
}