refactor: rename getFooterLinks to useFooterLinks for improved clarity and consistency
This commit is contained in:
parent
fc8cea13cd
commit
28fcbae6a2
@ -4,7 +4,7 @@ import Container from '@/components/layout/container';
|
|||||||
import { Logo } from '@/components/layout/logo';
|
import { Logo } from '@/components/layout/logo';
|
||||||
import { ModeSwitcherHorizontal } from '@/components/layout/mode-switcher-horizontal';
|
import { ModeSwitcherHorizontal } from '@/components/layout/mode-switcher-horizontal';
|
||||||
import BuiltWithButton from '@/components/shared/built-with-button';
|
import BuiltWithButton from '@/components/shared/built-with-button';
|
||||||
import { getFooterLinks } from '@/config/footer-config';
|
import { useFooterLinks } from '@/config/footer-config';
|
||||||
import { getSocialLinks } from '@/config/social-config';
|
import { getSocialLinks } from '@/config/social-config';
|
||||||
import { LocaleLink } from '@/i18n/navigation';
|
import { LocaleLink } from '@/i18n/navigation';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
@ -13,7 +13,7 @@ import type React from 'react';
|
|||||||
|
|
||||||
export function Footer({ className }: React.HTMLAttributes<HTMLElement>) {
|
export function Footer({ className }: React.HTMLAttributes<HTMLElement>) {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const footerLinks = getFooterLinks();
|
const footerLinks = useFooterLinks();
|
||||||
const socialLinks = getSocialLinks();
|
const socialLinks = getSocialLinks();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -15,7 +15,7 @@ import { websiteConfig } from './website';
|
|||||||
*
|
*
|
||||||
* @returns The footer config with translated titles
|
* @returns The footer config with translated titles
|
||||||
*/
|
*/
|
||||||
export function getFooterLinks(): NestedMenuItem[] {
|
export function useFooterLinks(): NestedMenuItem[] {
|
||||||
const t = useTranslations('Marketing.footer');
|
const t = useTranslations('Marketing.footer');
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user