import { Link } from '@/i18n/routing' import { getTranslations, getLocale } from 'next-intl/server' import { mockDb } from '@/lib/mockDb' export default async function Footer() { const categories = await mockDb.getCategories() const locale = await getLocale() const getLocalizedName = (obj: any) => { if (!obj) return '' return locale === 'ru' ? obj.nameRu : locale === 'en' ? obj.nameEn : obj.nameTr } const t = await getTranslations('footer') const nav = await getTranslations('nav') return ( ) }