mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 23:53:05 +00:00
20 lines
684 B
TypeScript
20 lines
684 B
TypeScript
import Link from 'next/link'
|
|
|
|
import { getCachedGlobal } from '@/utilities/globalReads'
|
|
import { SocialLinks } from './socialLinks'
|
|
|
|
export const Footer = async () => {
|
|
const privacy = await getCachedGlobal('privacy-policy', 0)()
|
|
const showPrivacyLink = privacy.published === true
|
|
|
|
return (
|
|
<footer className="flex flex-col items-center justify-center gap-3 p-4 text-center text-sm text-muted-foreground">
|
|
<SocialLinks ariaLabel="Redes sociais do rodapé" />
|
|
{showPrivacyLink ? (
|
|
<Link href="/privacidade" className="text-primary underline-offset-4 hover:underline">
|
|
Política de Privacidade
|
|
</Link>
|
|
) : null}
|
|
</footer>
|
|
)
|
|
}
|