diff --git a/components/mobile-nav.tsx b/components/mobile-nav.tsx index 4037f6a..41daacd 100644 --- a/components/mobile-nav.tsx +++ b/components/mobile-nav.tsx @@ -5,10 +5,12 @@ import Image from 'next/image'; import Link from 'next/link'; import { useKeyDetect } from '@/hooks/use-key-detect'; import { MainConfig } from '@/types'; -import { Button, Icon, IconButton, Text } from 'opub-ui'; +import { IconButton, Text } from 'opub-ui'; +import { getPrefLangCookie } from '@/lib/serverUtils'; import { handleRedirect } from '@/lib/utils'; import { Icons } from '@/components/icons'; +import { TranslateDropdown } from './langSelect/lang-select'; export function MobileNav({ data }: { data: MainConfig }) { const [open, setOpen] = React.useState(false); @@ -67,24 +69,27 @@ export function MobileNav({ data }: { data: MainConfig }) { className="fixed z-10 flex h-[95vh] w-[100vw] flex-shrink-0 flex-col items-start justify-between border-t-1 border-solid border-baseGraySlateSolid11 bg-backgroundSolidDark px-5 py-8 text-textOnBGDefault" style={{ zIndex: '100009' }} > -